PlaybackReports.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. using MediaBrowser.Model.Entities;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.Session
  4. {
  5. /// <summary>
  6. /// Class PlaybackStartInfo.
  7. /// </summary>
  8. public class PlaybackStartInfo : PlaybackProgressInfo
  9. {
  10. public PlaybackStartInfo()
  11. {
  12. QueueableMediaTypes = new List<string>();
  13. }
  14. /// <summary>
  15. /// Gets or sets the queueable media types.
  16. /// </summary>
  17. /// <value>The queueable media types.</value>
  18. public List<string> QueueableMediaTypes { get; set; }
  19. }
  20. /// <summary>
  21. /// Class PlaybackProgressInfo.
  22. /// </summary>
  23. public class PlaybackProgressInfo
  24. {
  25. /// <summary>
  26. /// Gets or sets a value indicating whether this instance can seek.
  27. /// </summary>
  28. /// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
  29. public bool CanSeek { get; set; }
  30. /// <summary>
  31. /// Gets or sets the item.
  32. /// </summary>
  33. /// <value>The item.</value>
  34. public BaseItemInfo Item { get; set; }
  35. /// <summary>
  36. /// Gets or sets the item identifier.
  37. /// </summary>
  38. /// <value>The item identifier.</value>
  39. public string ItemId { get; set; }
  40. /// <summary>
  41. /// Gets or sets the session id.
  42. /// </summary>
  43. /// <value>The session id.</value>
  44. public string SessionId { get; set; }
  45. /// <summary>
  46. /// Gets or sets the media version identifier.
  47. /// </summary>
  48. /// <value>The media version identifier.</value>
  49. public string MediaSourceId { get; set; }
  50. /// <summary>
  51. /// Gets or sets the index of the audio stream.
  52. /// </summary>
  53. /// <value>The index of the audio stream.</value>
  54. public int? AudioStreamIndex { get; set; }
  55. /// <summary>
  56. /// Gets or sets the index of the subtitle stream.
  57. /// </summary>
  58. /// <value>The index of the subtitle stream.</value>
  59. public int? SubtitleStreamIndex { get; set; }
  60. /// <summary>
  61. /// Gets or sets a value indicating whether this instance is paused.
  62. /// </summary>
  63. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  64. public bool IsPaused { get; set; }
  65. /// <summary>
  66. /// Gets or sets a value indicating whether this instance is muted.
  67. /// </summary>
  68. /// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
  69. public bool IsMuted { get; set; }
  70. /// <summary>
  71. /// Gets or sets the position ticks.
  72. /// </summary>
  73. /// <value>The position ticks.</value>
  74. public long? PositionTicks { get; set; }
  75. /// <summary>
  76. /// Gets or sets the volume level.
  77. /// </summary>
  78. /// <value>The volume level.</value>
  79. public int? VolumeLevel { get; set; }
  80. /// <summary>
  81. /// Gets or sets the play method.
  82. /// </summary>
  83. /// <value>The play method.</value>
  84. public PlayMethod PlayMethod { get; set; }
  85. }
  86. public enum PlayMethod
  87. {
  88. Transcode = 0,
  89. DirectStream = 1,
  90. DirectPlay = 2
  91. }
  92. /// <summary>
  93. /// Class PlaybackStopInfo.
  94. /// </summary>
  95. public class PlaybackStopInfo
  96. {
  97. /// <summary>
  98. /// Gets or sets the item.
  99. /// </summary>
  100. /// <value>The item.</value>
  101. public BaseItemInfo Item { get; set; }
  102. /// <summary>
  103. /// Gets or sets the item identifier.
  104. /// </summary>
  105. /// <value>The item identifier.</value>
  106. public string ItemId { get; set; }
  107. /// <summary>
  108. /// Gets or sets the session id.
  109. /// </summary>
  110. /// <value>The session id.</value>
  111. public string SessionId { get; set; }
  112. /// <summary>
  113. /// Gets or sets the media version identifier.
  114. /// </summary>
  115. /// <value>The media version identifier.</value>
  116. public string MediaSourceId { get; set; }
  117. /// <summary>
  118. /// Gets or sets the position ticks.
  119. /// </summary>
  120. /// <value>The position ticks.</value>
  121. public long? PositionTicks { get; set; }
  122. }
  123. }