SessionInfoDto.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 type of the client.
  24. /// </summary>
  25. /// <value>The type of the client.</value>
  26. public string Client { get; set; }
  27. /// <summary>
  28. /// Gets or sets the last activity date.
  29. /// </summary>
  30. /// <value>The last activity date.</value>
  31. public DateTime LastActivityDate { get; set; }
  32. /// <summary>
  33. /// Gets or sets the now viewing context.
  34. /// </summary>
  35. /// <value>The now viewing context.</value>
  36. public string NowViewingContext { get; set; }
  37. /// <summary>
  38. /// Gets or sets the type of the now viewing item.
  39. /// </summary>
  40. /// <value>The type of the now viewing item.</value>
  41. public string NowViewingItemType { get; set; }
  42. /// <summary>
  43. /// Gets or sets the now viewing item identifier.
  44. /// </summary>
  45. /// <value>The now viewing item identifier.</value>
  46. public string NowViewingItemId { get; set; }
  47. /// <summary>
  48. /// Gets or sets the name of the now viewing item.
  49. /// </summary>
  50. /// <value>The name of the now viewing item.</value>
  51. public string NowViewingItemName { get; set; }
  52. /// <summary>
  53. /// Gets or sets the name of the device.
  54. /// </summary>
  55. /// <value>The name of the device.</value>
  56. public string DeviceName { get; set; }
  57. /// <summary>
  58. /// Gets or sets a value indicating whether this instance is paused.
  59. /// </summary>
  60. /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
  61. public bool? IsPaused { get; set; }
  62. /// <summary>
  63. /// Gets or sets the now playing item.
  64. /// </summary>
  65. /// <value>The now playing item.</value>
  66. public BaseItemInfo NowPlayingItem { get; set; }
  67. /// <summary>
  68. /// Gets or sets the now playing position ticks.
  69. /// </summary>
  70. /// <value>The now playing position ticks.</value>
  71. public long? NowPlayingPositionTicks { get; set; }
  72. /// <summary>
  73. /// Gets or sets the device id.
  74. /// </summary>
  75. /// <value>The device id.</value>
  76. public string DeviceId { get; set; }
  77. /// <summary>
  78. /// Gets or sets a value indicating whether [supports remote control].
  79. /// </summary>
  80. /// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
  81. public bool SupportsRemoteControl { get; set; }
  82. }
  83. }