PlaystateRequest.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. 
  2. namespace MediaBrowser.Model.Session
  3. {
  4. /// <summary>
  5. /// Class PlaystateRequest
  6. /// </summary>
  7. public class PlaystateRequest
  8. {
  9. /// <summary>
  10. /// Gets or sets the command.
  11. /// </summary>
  12. /// <value>The command.</value>
  13. public PlaystateCommand Command { get; set; }
  14. /// <summary>
  15. /// Gets or sets the seek position.
  16. /// Only applicable to seek commands.
  17. /// </summary>
  18. /// <value>The seek position.</value>
  19. public long? SeekPosition { get; set; }
  20. }
  21. /// <summary>
  22. /// Enum PlaystateCommand
  23. /// </summary>
  24. public enum PlaystateCommand
  25. {
  26. /// <summary>
  27. /// The stop
  28. /// </summary>
  29. Stop,
  30. /// <summary>
  31. /// The pause
  32. /// </summary>
  33. Pause,
  34. /// <summary>
  35. /// The unpause
  36. /// </summary>
  37. Unpause,
  38. /// <summary>
  39. /// The next track
  40. /// </summary>
  41. NextTrack,
  42. /// <summary>
  43. /// The previous track
  44. /// </summary>
  45. PreviousTrack,
  46. /// <summary>
  47. /// The seek
  48. /// </summary>
  49. Seek
  50. }
  51. }