SessionInfoDto.cs 3.8 KB

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