AuthenticationInfo.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. namespace MediaBrowser.Controller.Security
  5. {
  6. public class AuthenticationInfo
  7. {
  8. /// <summary>
  9. /// Gets or sets the identifier.
  10. /// </summary>
  11. /// <value>The identifier.</value>
  12. public long Id { get; set; }
  13. /// <summary>
  14. /// Gets or sets the access token.
  15. /// </summary>
  16. /// <value>The access token.</value>
  17. public string AccessToken { get; set; }
  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 name of the application.
  25. /// </summary>
  26. /// <value>The name of the application.</value>
  27. public string AppName { get; set; }
  28. /// <summary>
  29. /// Gets or sets the application version.
  30. /// </summary>
  31. /// <value>The application version.</value>
  32. public string AppVersion { get; set; }
  33. /// <summary>
  34. /// Gets or sets the name of the device.
  35. /// </summary>
  36. /// <value>The name of the device.</value>
  37. public string DeviceName { get; set; }
  38. /// <summary>
  39. /// Gets or sets the user identifier.
  40. /// </summary>
  41. /// <value>The user identifier.</value>
  42. public Guid UserId { get; set; }
  43. /// <summary>
  44. /// Gets or sets a value indicating whether this instance is active.
  45. /// </summary>
  46. /// <value><c>true</c> if this instance is active; otherwise, <c>false</c>.</value>
  47. public bool IsActive { get; set; }
  48. /// <summary>
  49. /// Gets or sets the date created.
  50. /// </summary>
  51. /// <value>The date created.</value>
  52. public DateTime DateCreated { get; set; }
  53. /// <summary>
  54. /// Gets or sets the date revoked.
  55. /// </summary>
  56. /// <value>The date revoked.</value>
  57. public DateTime? DateRevoked { get; set; }
  58. public DateTime DateLastActivity { get; set; }
  59. public string UserName { get; set; }
  60. }
  61. }