AuthorizationInfo.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using MediaBrowser.Controller.Entities;
  3. namespace MediaBrowser.Controller.Net
  4. {
  5. public class AuthorizationInfo
  6. {
  7. /// <summary>
  8. /// Gets or sets the user identifier.
  9. /// </summary>
  10. /// <value>The user identifier.</value>
  11. public Guid UserId
  12. {
  13. get
  14. {
  15. return User == null ? Guid.Empty : User.Id;
  16. }
  17. }
  18. /// <summary>
  19. /// Gets or sets the device identifier.
  20. /// </summary>
  21. /// <value>The device identifier.</value>
  22. public string DeviceId { get; set; }
  23. /// <summary>
  24. /// Gets or sets the device.
  25. /// </summary>
  26. /// <value>The device.</value>
  27. public string Device { get; set; }
  28. /// <summary>
  29. /// Gets or sets the client.
  30. /// </summary>
  31. /// <value>The client.</value>
  32. public string Client { get; set; }
  33. /// <summary>
  34. /// Gets or sets the version.
  35. /// </summary>
  36. /// <value>The version.</value>
  37. public string Version { get; set; }
  38. /// <summary>
  39. /// Gets or sets the token.
  40. /// </summary>
  41. /// <value>The token.</value>
  42. public string Token { get; set; }
  43. public User User { get; set; }
  44. }
  45. }