平安校园
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
991 B

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