SessionInfoDto.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. using MediaBrowser.Model.Dto;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Model.Session
  5. {
  6. public class SessionInfoDto
  7. {
  8. /// <summary>
  9. /// Gets or sets the supported commands.
  10. /// </summary>
  11. /// <value>The supported commands.</value>
  12. public string[] SupportedCommands { get; set; }
  13. /// <summary>
  14. /// Gets or sets the playable media types.
  15. /// </summary>
  16. /// <value>The playable media types.</value>
  17. public string[] PlayableMediaTypes { get; set; }
  18. /// <summary>
  19. /// Gets or sets the id.
  20. /// </summary>
  21. /// <value>The id.</value>
  22. public string Id { get; set; }
  23. public string ServerId { get; set; }
  24. /// <summary>
  25. /// Gets or sets the user id.
  26. /// </summary>
  27. /// <value>The user id.</value>
  28. public string UserId { get; set; }
  29. /// <summary>
  30. /// Gets or sets the user primary image tag.
  31. /// </summary>
  32. /// <value>The user primary image tag.</value>
  33. public string UserPrimaryImageTag { get; set; }
  34. public string RemoteEndPoint { 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 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 name of the device.
  62. /// </summary>
  63. /// <value>The name of the device.</value>
  64. public string DeviceName { get; set; }
  65. public string DeviceType { get; set; }
  66. /// <summary>
  67. /// Gets or sets the now playing item.
  68. /// </summary>
  69. /// <value>The now playing item.</value>
  70. public BaseItemDto NowPlayingItem { get; set; }
  71. /// <summary>
  72. /// Gets or sets the device id.
  73. /// </summary>
  74. /// <value>The device id.</value>
  75. public string DeviceId { get; set; }
  76. /// <summary>
  77. /// Gets or sets the application icon URL.
  78. /// </summary>
  79. /// <value>The application icon URL.</value>
  80. public string AppIconUrl { get; set; }
  81. /// <summary>
  82. /// Gets or sets a value indicating whether [supports remote control].
  83. /// </summary>
  84. /// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
  85. public bool SupportsRemoteControl { get; set; }
  86. public PlayerStateInfo PlayState { get; set; }
  87. public TranscodingInfo TranscodingInfo { get; set; }
  88. public SessionInfoDto()
  89. {
  90. AdditionalUsers = new SessionUserInfo[] { };
  91. PlayableMediaTypes = new string[] {};
  92. SupportedCommands = new string[] {};
  93. }
  94. }
  95. }