AuthorizationInfo.cs 1.2 KB

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