using System; using System.Collections.Generic; namespace CustomizeDiagnosisSDK.Models { /// /// AI 引擎信息 /// public class EngineInfo { /// /// AI引擎名称 /// public string EngineName { get; set; } /// /// AI引擎类型 /// public string EngineType { get; set; } /// /// 是否可用 /// public bool IsEnabled { get; set; } /// /// AI引擎版本 /// public string Version { get; set; } /// /// AI引擎提供方 /// public string Vendor { get; set; } /// /// 引擎过期时间 /// public DateTime? ExpiredTime { get; set; } /// /// 每个引擎所使用到的Dll信息列表 /// public List RelatedDllList { get; set; } public EngineInfo(Enum engineName, Enum engineType, bool isEnabled, string version, string vendor, DateTime? expiredTime, List relatedDllList) { EngineName = engineName.ToString(); EngineType = engineType.ToString(); IsEnabled = isEnabled; Version = version; Vendor = vendor; ExpiredTime = expiredTime; RelatedDllList = relatedDllList; } public string GetUniqueString() { return $"{EngineName}_{EngineType}_{Version}_{Vendor}"; } } }