SessionInfoDto.cs 3.7 KB

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