平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TokenInfo.cs 991 B

4 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. 
  2. //
  3. namespace SafeCampus.Core;
  4. /// <summary>
  5. /// Token信息
  6. /// </summary>
  7. public class TokenInfo
  8. {
  9. /// <summary>
  10. /// MQTT客户端ID列表
  11. /// </summary>
  12. public List<string> ClientIds { get; set; } = new List<string>();
  13. /// <summary>
  14. /// 设备
  15. /// </summary>
  16. public string Device { get; set; }
  17. /// <summary>
  18. /// 登录端
  19. /// </summary>
  20. public LoginClientTypeEnum LoginClientType { get; set; }
  21. /// <summary>
  22. /// 过期时间
  23. /// </summary>
  24. public int Expire { get; set; }
  25. /// <summary>
  26. /// Token
  27. /// </summary>
  28. public string Token { get; set; }
  29. /// <summary>
  30. /// 超时时间
  31. /// </summary>
  32. public DateTime TokenTimeout { get; set; }
  33. /// <summary>
  34. /// token剩余有效期
  35. /// </summary>
  36. public string TokenRemain { get; set; }
  37. /// <summary>
  38. /// token剩余有效期百分比
  39. /// </summary>
  40. public double TokenRemainPercent { get; set; }
  41. }