SessionInfoDto.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. using MediaBrowser.Model.Dto;
  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 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 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. public string ServerId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the user id.
  28. /// </summary>
  29. /// <value>The user id.</value>
  30. public string UserId { get; set; }
  31. /// <summary>
  32. /// Gets or sets the user primary image tag.
  33. /// </summary>
  34. /// <value>The user primary image tag.</value>
  35. public string UserPrimaryImageTag { get; set; }
  36. /// <summary>
  37. /// Gets or sets the name of the user.
  38. /// </summary>
  39. /// <value>The name of the user.</value>
  40. public string UserName { get; set; }
  41. /// <summary>
  42. /// Gets or sets the additional users present.
  43. /// </summary>
  44. /// <value>The additional users present.</value>
  45. public SessionUserInfo[] AdditionalUsers { get; set; }
  46. /// <summary>
  47. /// Gets or sets the application version.
  48. /// </summary>
  49. /// <value>The application version.</value>
  50. public string ApplicationVersion { get; set; }
  51. /// <summary>
  52. /// Gets or sets the type of the client.
  53. /// </summary>
  54. /// <value>The type of the client.</value>
  55. public string Client { get; set; }
  56. /// <summary>
  57. /// Gets or sets the last activity date.
  58. /// </summary>
  59. /// <value>The last activity date.</value>
  60. public DateTime LastActivityDate { get; set; }
  61. /// <summary>
  62. /// Gets or sets the now viewing item.
  63. /// </summary>
  64. /// <value>The now viewing item.</value>
  65. public BaseItemDto NowViewingItem { get; set; }
  66. /// <summary>
  67. /// Gets or sets the name of the device.
  68. /// </summary>
  69. /// <value>The name of the device.</value>
  70. public string DeviceName { get; set; }
  71. /// <summary>
  72. /// Gets or sets the now playing item.
  73. /// </summary>
  74. /// <value>The now playing item.</value>
  75. public BaseItemDto NowPlayingItem { get; set; }
  76. /// <summary>
  77. /// Gets or sets the device id.
  78. /// </summary>
  79. /// <value>The device id.</value>
  80. public string DeviceId { get; set; }
  81. /// <summary>
  82. /// Gets or sets the application icon URL.
  83. /// </summary>
  84. /// <value>The application icon URL.</value>
  85. public string AppIconUrl { get; set; }
  86. /// <summary>
  87. /// Gets or sets a value indicating whether [supports remote control].
  88. /// </summary>
  89. /// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
  90. public bool SupportsRemoteControl { get; set; }
  91. public PlayerStateInfo PlayState { get; set; }
  92. public TranscodingInfo TranscodingInfo { get; set; }
  93. public SessionInfoDto()
  94. {
  95. AdditionalUsers = new SessionUserInfo[] { };
  96. PlayableMediaTypes = new string[] { };
  97. SupportedCommands = new string[] { };
  98. }
  99. }
  100. }