AuthenticationInfo.cs 2.1 KB

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