AuthorizationInfo.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using MediaBrowser.Controller.Entities;
  2. using System;
  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. get {
  13. return User == null ? Guid.Empty : User.Id;
  14. }
  15. }
  16. /// <summary>
  17. /// Gets or sets the device identifier.
  18. /// </summary>
  19. /// <value>The device identifier.</value>
  20. public string DeviceId { get; set; }
  21. /// <summary>
  22. /// Gets or sets the device.
  23. /// </summary>
  24. /// <value>The device.</value>
  25. public string Device { get; set; }
  26. /// <summary>
  27. /// Gets or sets the client.
  28. /// </summary>
  29. /// <value>The client.</value>
  30. public string Client { get; set; }
  31. /// <summary>
  32. /// Gets or sets the version.
  33. /// </summary>
  34. /// <value>The version.</value>
  35. public string Version { get; set; }
  36. /// <summary>
  37. /// Gets or sets the token.
  38. /// </summary>
  39. /// <value>The token.</value>
  40. public string Token { get; set; }
  41. public User User { get; set; }
  42. }
  43. }