2
0

AuthorizationInfo.cs 1.2 KB

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