PlayRequest.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. 
  2. using System;
  3. namespace MediaBrowser.Model.Session
  4. {
  5. /// <summary>
  6. /// Class PlayRequest
  7. /// </summary>
  8. public class PlayRequest
  9. {
  10. public PlayRequest()
  11. {
  12. }
  13. /// <summary>
  14. /// Gets or sets the item ids.
  15. /// </summary>
  16. /// <value>The item ids.</value>
  17. public string[] 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. public long? StartPositionTicks { get; set; }
  23. /// <summary>
  24. /// Gets or sets the play command.
  25. /// </summary>
  26. /// <value>The play command.</value>
  27. public PlayCommand PlayCommand { get; set; }
  28. /// <summary>
  29. /// Gets or sets the play command.
  30. /// </summary>
  31. /// <value>The play command.</value>
  32. public Guid UserId { get; set; }
  33. }
  34. /// <summary>
  35. /// Enum PlayCommand
  36. /// </summary>
  37. public enum PlayCommand
  38. {
  39. /// <summary>
  40. /// The play now
  41. /// </summary>
  42. PlayNow,
  43. /// <summary>
  44. /// The play next
  45. /// </summary>
  46. PlayNext,
  47. /// <summary>
  48. /// The play last
  49. /// </summary>
  50. PlayLast
  51. }
  52. }