PlayRequest.cs 1.9 KB

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