EngineInfo.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. namespace CustomizeDiagnosisSDK.Models
  4. {
  5. /// <summary>
  6. /// AI 引擎信息
  7. /// </summary>
  8. public class EngineInfo
  9. {
  10. /// <summary>
  11. /// AI引擎名称
  12. /// </summary>
  13. public string EngineName { get; set; }
  14. /// <summary>
  15. /// AI引擎类型
  16. /// </summary>
  17. public string EngineType { get; set; }
  18. /// <summary>
  19. /// 是否可用
  20. /// </summary>
  21. public bool IsEnabled { get; set; }
  22. /// <summary>
  23. /// AI引擎版本
  24. /// </summary>
  25. public string Version { get; set; }
  26. /// <summary>
  27. /// AI引擎提供方
  28. /// </summary>
  29. public string Vendor { get; set; }
  30. /// <summary>
  31. /// 引擎过期时间
  32. /// </summary>
  33. public DateTime? ExpiredTime { get; set; }
  34. /// <summary>
  35. /// 每个引擎所使用到的Dll信息列表
  36. /// </summary>
  37. public List<string> RelatedDllList { get; set; }
  38. public EngineInfo(Enum engineName, Enum engineType, bool isEnabled, string version, string vendor, DateTime? expiredTime, List<string> relatedDllList)
  39. {
  40. EngineName = engineName.ToString();
  41. EngineType = engineType.ToString();
  42. IsEnabled = isEnabled;
  43. Version = version;
  44. Vendor = vendor;
  45. ExpiredTime = expiredTime;
  46. RelatedDllList = relatedDllList;
  47. }
  48. public string GetUniqueString()
  49. {
  50. return $"{EngineName}_{EngineType}_{Version}_{Vendor}";
  51. }
  52. }
  53. }