PlayRequest.cs 1.9 KB

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