ClientConnectionInfo.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 string Client { 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. /// <summary>
  49. /// Gets or sets the device id.
  50. /// </summary>
  51. /// <value>The device id.</value>
  52. [ProtoMember(7)]
  53. public string DeviceId { get; set; }
  54. }
  55. }