PlayRequest.cs 1.8 KB

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