PlayRequest.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using MediaBrowser.Model.Services;
  2. namespace MediaBrowser.Model.Session
  3. {
  4. /// <summary>
  5. /// Class PlayRequest
  6. /// </summary>
  7. public class PlayRequest
  8. {
  9. /// <summary>
  10. /// Gets or sets the item ids.
  11. /// </summary>
  12. /// <value>The item ids.</value>
  13. [ApiMember(Name = "ItemIds", Description = "The ids of the items to play, comma delimited", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST", AllowMultiple = true)]
  14. public string[] ItemIds { get; set; }
  15. /// <summary>
  16. /// Gets or sets the start position ticks that the first item should be played at
  17. /// </summary>
  18. /// <value>The start position ticks.</value>
  19. [ApiMember(Name = "StartPositionTicks", Description = "The starting position of the first item.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
  20. public long? StartPositionTicks { get; set; }
  21. /// <summary>
  22. /// Gets or sets the play command.
  23. /// </summary>
  24. /// <value>The play command.</value>
  25. [ApiMember(Name = "PlayCommand", Description = "The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
  26. public PlayCommand PlayCommand { get; set; }
  27. /// <summary>
  28. /// Gets or sets the controlling user identifier.
  29. /// </summary>
  30. /// <value>The controlling user identifier.</value>
  31. public string ControllingUserId { get; set; }
  32. public int? SubtitleStreamIndex { get; set; }
  33. public int? AudioStreamIndex { get; set; }
  34. public string MediaSourceId { get; set; }
  35. }
  36. }