SessionInfoDto.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. namespace MediaBrowser.Model.Session
  4. {
  5. public class SessionInfoDto
  6. {
  7. /// <summary>
  8. /// Gets or sets the id.
  9. /// </summary>
  10. /// <value>The id.</value>
  11. public Guid Id { get; set; }
  12. /// <summary>
  13. /// Gets or sets the user id.
  14. /// </summary>
  15. /// <value>The user id.</value>
  16. public string UserId { get; set; }
  17. /// <summary>
  18. /// Gets or sets the name of the user.
  19. /// </summary>
  20. /// <value>The name of the user.</value>
  21. public string UserName { get; set; }
  22. /// <summary>
  23. /// Gets or sets the application version.
  24. /// </summary>
  25. /// <value>The application version.</value>
  26. public string ApplicationVersion { get; set; }
  27. /// <summary>
  28. /// Gets or sets the type of the client.
  29. /// </summary>
  30. /// <value>The type of the client.</value>
  31. public string Client { get; set; }
  32. /// <summary>
  33. /// Gets or sets the last activity date.
  34. /// </summary>
  35. /// <value>The last activity date.</value>
  36. public DateTime LastActivityDate { get; set; }
  37. /// <summary>
  38. /// Gets or sets the now viewing context.
  39. /// </summary>
  40. /// <value>The now viewing context.</value>
  41. public string NowViewingContext { get; set; }
  42. /// <summary>
  43. /// Gets or sets the type of the now viewing item.
  44. /// </summary>
  45. /// <value>The type of the now viewing item.</value>
  46. public string NowViewingItemType { get; set; }
  47. /// <summary>
  48. /// Gets or sets the now viewing item identifier.
  49. /// </summary>
  50. /// <value>The now viewing item identifier.</value>
  51. public string NowViewingItemId { get; set; }
  52. /// <summary>
  53. /// Gets or sets the name of the now viewing item.
  54. /// </summary>
  55. /// <value>The name of the now viewing item.</value>
  56. public string NowViewingItemName { get; set; }
  57. /// <summary>
  58. /// Gets or sets the name of the device.
  59. /// </summary>
  60. /// <value>The name of the device.</value>
  61. public string DeviceName { get; set; }
  62. /// <summary>
  63. /// Gets or sets a value indicating whether this instance is paused.
  64. /// </summary>
  65. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  66. public bool? IsPaused { get; set; }
  67. /// <summary>
  68. /// Gets or sets the now playing item.
  69. /// </summary>
  70. /// <value>The now playing item.</value>
  71. public BaseItemInfo NowPlayingItem { get; set; }
  72. /// <summary>
  73. /// Gets or sets the now playing position ticks.
  74. /// </summary>
  75. /// <value>The now playing position ticks.</value>
  76. public long? NowPlayingPositionTicks { get; set; }
  77. /// <summary>
  78. /// Gets or sets the device id.
  79. /// </summary>
  80. /// <value>The device id.</value>
  81. public string DeviceId { get; set; }
  82. /// <summary>
  83. /// Gets or sets a value indicating whether [supports remote control].
  84. /// </summary>
  85. /// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
  86. public bool SupportsRemoteControl { get; set; }
  87. }
  88. }