ClientConnectionInfo.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using MediaBrowser.Model.Entities;
  2. using ProtoBuf;
  3. using System;
  4. namespace MediaBrowser.Model.Connectivity
  5. {
  6. /// <summary>
  7. /// Class ClientConnectionInfo
  8. /// </summary>
  9. [ProtoContract]
  10. public class ClientConnectionInfo
  11. {
  12. /// <summary>
  13. /// Gets or sets the user id.
  14. /// </summary>
  15. /// <value>The user id.</value>
  16. [ProtoMember(1)]
  17. public Guid UserId { get; set; }
  18. /// <summary>
  19. /// Gets or sets the type of the client.
  20. /// </summary>
  21. /// <value>The type of the client.</value>
  22. [ProtoMember(2)]
  23. public ClientType ClientType { get; set; }
  24. /// <summary>
  25. /// Gets or sets the last activity date.
  26. /// </summary>
  27. /// <value>The last activity date.</value>
  28. [ProtoMember(3)]
  29. public DateTime LastActivityDate { get; set; }
  30. /// <summary>
  31. /// Gets or sets the name of the device.
  32. /// </summary>
  33. /// <value>The name of the device.</value>
  34. [ProtoMember(4)]
  35. public string DeviceName { get; set; }
  36. /// <summary>
  37. /// Gets or sets the now playing item.
  38. /// </summary>
  39. /// <value>The now playing item.</value>
  40. [ProtoMember(5)]
  41. public BaseItemInfo NowPlayingItem { get; set; }
  42. /// <summary>
  43. /// Gets or sets the now playing position ticks.
  44. /// </summary>
  45. /// <value>The now playing position ticks.</value>
  46. [ProtoMember(6)]
  47. public long? NowPlayingPositionTicks { get; set; }
  48. }
  49. }