SessionInfoDto.cs 4.2 KB

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