SessionInfoDto.cs 4.0 KB

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