AuthenticationInfo.cs 2.1 KB

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