2
0

PlayRequest.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. 
  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. public string[] ItemIds { get; set; }
  14. /// <summary>
  15. /// Gets or sets the start position ticks that the first item should be played at
  16. /// </summary>
  17. /// <value>The start position ticks.</value>
  18. public long? StartPositionTicks { get; set; }
  19. /// <summary>
  20. /// Gets or sets the play command.
  21. /// </summary>
  22. /// <value>The play command.</value>
  23. public PlayCommand PlayCommand { get; set; }
  24. /// <summary>
  25. /// Gets or sets the controlling user identifier.
  26. /// </summary>
  27. /// <value>The controlling user identifier.</value>
  28. public string ControllingUserId { get; set; }
  29. }
  30. /// <summary>
  31. /// Enum PlayCommand
  32. /// </summary>
  33. public enum PlayCommand
  34. {
  35. /// <summary>
  36. /// The play now
  37. /// </summary>
  38. PlayNow,
  39. /// <summary>
  40. /// The play next
  41. /// </summary>
  42. PlayNext,
  43. /// <summary>
  44. /// The play last
  45. /// </summary>
  46. PlayLast
  47. }
  48. }