SessionInfoDto.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Diagnostics;
  6. using MediaBrowser.Model.Extensions;
  7. namespace MediaBrowser.Model.Session
  8. {
  9. [DebuggerDisplay("Client = {Client}, Username = {UserName}")]
  10. public class SessionInfoDto : IHasPropertyChangedEvent
  11. {
  12. /// <summary>
  13. /// Gets or sets a value indicating whether this instance can seek.
  14. /// </summary>
  15. /// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
  16. public bool CanSeek { get; set; }
  17. /// <summary>
  18. /// Gets or sets the supported commands.
  19. /// </summary>
  20. /// <value>The supported commands.</value>
  21. public List<string> SupportedCommands { get; set; }
  22. /// <summary>
  23. /// Gets or sets the remote end point.
  24. /// </summary>
  25. /// <value>The remote end point.</value>
  26. public string RemoteEndPoint { get; set; }
  27. /// <summary>
  28. /// Gets or sets the queueable media types.
  29. /// </summary>
  30. /// <value>The queueable media types.</value>
  31. public List<string> QueueableMediaTypes { get; set; }
  32. /// <summary>
  33. /// Gets or sets the playable media types.
  34. /// </summary>
  35. /// <value>The playable media types.</value>
  36. public List<string> PlayableMediaTypes { get; set; }
  37. /// <summary>
  38. /// Gets or sets the id.
  39. /// </summary>
  40. /// <value>The id.</value>
  41. public string Id { get; set; }
  42. /// <summary>
  43. /// Gets or sets the user id.
  44. /// </summary>
  45. /// <value>The user id.</value>
  46. public string UserId { get; set; }
  47. /// <summary>
  48. /// Gets or sets the user primary image tag.
  49. /// </summary>
  50. /// <value>The user primary image tag.</value>
  51. public string UserPrimaryImageTag { get; set; }
  52. /// <summary>
  53. /// Gets or sets the name of the user.
  54. /// </summary>
  55. /// <value>The name of the user.</value>
  56. public string UserName { get; set; }
  57. /// <summary>
  58. /// Gets or sets the additional users present.
  59. /// </summary>
  60. /// <value>The additional users present.</value>
  61. public List<SessionUserInfo> AdditionalUsers { get; set; }
  62. /// <summary>
  63. /// Gets or sets the application version.
  64. /// </summary>
  65. /// <value>The application version.</value>
  66. public string ApplicationVersion { get; set; }
  67. /// <summary>
  68. /// Gets or sets the type of the client.
  69. /// </summary>
  70. /// <value>The type of the client.</value>
  71. public string Client { get; set; }
  72. /// <summary>
  73. /// Gets or sets the last activity date.
  74. /// </summary>
  75. /// <value>The last activity date.</value>
  76. public DateTime LastActivityDate { get; set; }
  77. /// <summary>
  78. /// Gets or sets the now viewing item.
  79. /// </summary>
  80. /// <value>The now viewing item.</value>
  81. public BaseItemInfo NowViewingItem { get; set; }
  82. /// <summary>
  83. /// Gets or sets the name of the device.
  84. /// </summary>
  85. /// <value>The name of the device.</value>
  86. public string DeviceName { get; set; }
  87. /// <summary>
  88. /// Gets or sets a value indicating whether this instance is paused.
  89. /// </summary>
  90. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  91. public bool IsPaused { get; set; }
  92. /// <summary>
  93. /// Gets or sets a value indicating whether this instance is muted.
  94. /// </summary>
  95. /// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
  96. public bool IsMuted { get; set; }
  97. /// <summary>
  98. /// Gets or sets the now playing item.
  99. /// </summary>
  100. /// <value>The now playing item.</value>
  101. public BaseItemInfo NowPlayingItem { get; set; }
  102. /// <summary>
  103. /// Gets or sets the now playing position ticks.
  104. /// </summary>
  105. /// <value>The now playing position ticks.</value>
  106. public long? NowPlayingPositionTicks { get; set; }
  107. /// <summary>
  108. /// Gets or sets the device id.
  109. /// </summary>
  110. /// <value>The device id.</value>
  111. public string DeviceId { get; set; }
  112. /// <summary>
  113. /// Gets or sets a value indicating whether [supports remote control].
  114. /// </summary>
  115. /// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
  116. public bool SupportsRemoteControl { get; set; }
  117. public PlayerStateInfo PlayState { get; set; }
  118. public TranscodingInfo TranscodingInfo { get; set; }
  119. public event PropertyChangedEventHandler PropertyChanged;
  120. public SessionInfoDto()
  121. {
  122. AdditionalUsers = new List<SessionUserInfo>();
  123. PlayableMediaTypes = new List<string>();
  124. QueueableMediaTypes = new List<string>();
  125. SupportedCommands = new List<string>();
  126. }
  127. }
  128. }