1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using System;
- using System.Collections.Generic;
- namespace CustomizeDiagnosisSDK.Models
- {
- /// <summary>
- /// AI 引擎信息
- /// </summary>
- public class EngineInfo
- {
- /// <summary>
- /// AI引擎名称
- /// </summary>
- public string EngineName { get; set; }
- /// <summary>
- /// AI引擎类型
- /// </summary>
- public string EngineType { get; set; }
- /// <summary>
- /// 是否可用
- /// </summary>
- public bool IsEnabled { get; set; }
- /// <summary>
- /// AI引擎版本
- /// </summary>
- public string Version { get; set; }
- /// <summary>
- /// AI引擎提供方
- /// </summary>
- public string Vendor { get; set; }
- /// <summary>
- /// 引擎过期时间
- /// </summary>
- public DateTime? ExpiredTime { get; set; }
- /// <summary>
- /// 每个引擎所使用到的Dll信息列表
- /// </summary>
- public List<string> RelatedDllList { get; set; }
- public EngineInfo(Enum engineName, Enum engineType, bool isEnabled, string version, string vendor, DateTime? expiredTime, List<string> 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}";
- }
- }
- }
|