PlaybackProgressInfo.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #pragma warning disable CS1591
  2. using System;
  3. using MediaBrowser.Model.Dto;
  4. namespace MediaBrowser.Model.Session
  5. {
  6. /// <summary>
  7. /// Class PlaybackProgressInfo.
  8. /// </summary>
  9. public class PlaybackProgressInfo
  10. {
  11. /// <summary>
  12. /// Gets or sets a value indicating whether this instance can seek.
  13. /// </summary>
  14. /// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
  15. public bool CanSeek { get; set; }
  16. /// <summary>
  17. /// Gets or sets the item.
  18. /// </summary>
  19. /// <value>The item.</value>
  20. public BaseItemDto Item { get; set; }
  21. /// <summary>
  22. /// Gets or sets the item identifier.
  23. /// </summary>
  24. /// <value>The item identifier.</value>
  25. public Guid ItemId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the session id.
  28. /// </summary>
  29. /// <value>The session id.</value>
  30. public string SessionId { get; set; }
  31. /// <summary>
  32. /// Gets or sets the media version identifier.
  33. /// </summary>
  34. /// <value>The media version identifier.</value>
  35. public string MediaSourceId { get; set; }
  36. /// <summary>
  37. /// Gets or sets the index of the audio stream.
  38. /// </summary>
  39. /// <value>The index of the audio stream.</value>
  40. public int? AudioStreamIndex { get; set; }
  41. /// <summary>
  42. /// Gets or sets the index of the subtitle stream.
  43. /// </summary>
  44. /// <value>The index of the subtitle stream.</value>
  45. public int? SubtitleStreamIndex { get; set; }
  46. /// <summary>
  47. /// Gets or sets a value indicating whether this instance is paused.
  48. /// </summary>
  49. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  50. public bool IsPaused { get; set; }
  51. /// <summary>
  52. /// Gets or sets a value indicating whether this instance is muted.
  53. /// </summary>
  54. /// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
  55. public bool IsMuted { get; set; }
  56. /// <summary>
  57. /// Gets or sets the position ticks.
  58. /// </summary>
  59. /// <value>The position ticks.</value>
  60. public long? PositionTicks { get; set; }
  61. public long? PlaybackStartTimeTicks { get; set; }
  62. /// <summary>
  63. /// Gets or sets the volume level.
  64. /// </summary>
  65. /// <value>The volume level.</value>
  66. public int? VolumeLevel { get; set; }
  67. public int? Brightness { get; set; }
  68. public string AspectRatio { get; set; }
  69. /// <summary>
  70. /// Gets or sets the play method.
  71. /// </summary>
  72. /// <value>The play method.</value>
  73. public PlayMethod PlayMethod { get; set; }
  74. /// <summary>
  75. /// Gets or sets the live stream identifier.
  76. /// </summary>
  77. /// <value>The live stream identifier.</value>
  78. public string LiveStreamId { get; set; }
  79. /// <summary>
  80. /// Gets or sets the play session identifier.
  81. /// </summary>
  82. /// <value>The play session identifier.</value>
  83. public string PlaySessionId { get; set; }
  84. /// <summary>
  85. /// Gets or sets the repeat mode.
  86. /// </summary>
  87. /// <value>The repeat mode.</value>
  88. public RepeatMode RepeatMode { get; set; }
  89. public QueueItem[] NowPlayingQueue { get; set; }
  90. public string PlaylistItemId { get; set; }
  91. }
  92. public enum RepeatMode
  93. {
  94. RepeatNone = 0,
  95. RepeatAll = 1,
  96. RepeatOne = 2
  97. }
  98. public class QueueItem
  99. {
  100. public Guid Id { get; set; }
  101. public string PlaylistItemId { get; set; }
  102. }
  103. }