FunctionInfo.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. namespace CustomizeDiagnosisSDK.Models
  4. {
  5. /// <summary>
  6. /// AI 功能信息
  7. /// </summary>
  8. public class FunctionInfo
  9. {
  10. /// <summary>
  11. /// AI 功能名称
  12. /// </summary>
  13. public string FunctionName { get; set; }
  14. /// <summary>
  15. /// 是否可用
  16. /// </summary>
  17. public bool IsEnabled { get; set; }
  18. /// <summary>
  19. /// 功能版本号
  20. /// </summary>
  21. public string Version { get; set; }
  22. /// <summary>
  23. /// 功能过期时间
  24. /// </summary>
  25. public DateTime? ExpiredTime { get; set; }
  26. /// <summary>
  27. /// 引擎信息列表
  28. /// </summary>
  29. public List<EngineInfo> Engines { get; set; }
  30. public FunctionInfo(Enum name, bool isEnabled, string version, DateTime? expiredTime, List<EngineInfo> engines)
  31. {
  32. FunctionName = name.ToString();
  33. IsEnabled = isEnabled;
  34. Version = version;
  35. ExpiredTime = expiredTime;
  36. Engines = engines;
  37. }
  38. }
  39. }