123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Flyinsono.DBCopy.Tool.Entities
- {
- internal class Terminals
- {
- public string Id { get; set; }
- public DateTime CreateTime { get; set; } = DateTime.MinValue;
- public DateTime UpdateTime { get; set; } = DateTime.MinValue;
- public bool IsDeleted { get; set; }
- //private readonly IList<AdminInfo> _users = new List<AdminInfo>();
- public string Name { get; set; }
- public string Password { get; set; }
- public string Description { get; set; }
- public string SerialNumber { get; set; }
- public string Model { get; set; }
- public bool SupportLive { get; set; }
- public virtual AdminInfo CreateAdmin { get; set; }
- public virtual OrganizationInfo Organization { get; set; }
- public virtual IList<AdminInfo> Users { get; set; } = new List<AdminInfo>();
- public virtual IList<AdminInfo> Owners { get; set; } = new List<AdminInfo>();
- public string FileToken { get; set; }
- public string CreatorUserId { get; set; }
- public bool IsRecommendedPoster { get; set; }
- public string UniquedId { get; set; }
- public bool CanEditInfo { get; set; }
- public string SoftwareVersion { get; set; }
- public bool IsSonopost { get; set; }
- /// <summary>
- /// AiDiagnosis Enabled
- /// </summary>
- public bool IsAIDiagnosis { get; set; }
- /// <summary>
- /// IsCarotidDiagnosis Enabled
- /// </summary>
- public bool IsCarotidDiagnosis { get; set; }
- public string CPU { get; set; }
- public string OS { get; set; }
- public LogRuleInfo LogRule { get; set; }
- /// <summary>
- /// 注册状态
- /// </summary>
- public TerminalRegistStatus RegistStatus { get; set; }
- /// <summary>
- /// 是否为虚拟设备(用户关联)
- /// </summary>
- public bool IsVirtualDevice { get; set; }
- public string Capability { get; set; }
- public SonopostVersonEnum SonopostVerson { get; set; }
- }
- public enum SonopostVersonEnum
- {
- Sonopost,
- Sonopost2
- }
- /// <summary>
- /// 终端注册状态
- /// </summary>
- public enum TerminalRegistStatus
- {
- /// <summary>
- /// 未注册
- /// </summary>
- None,
- /// <summary>
- /// 注册成功
- /// </summary>
- Success,
- /// <summary>
- /// 注册失败
- /// </summary>
- Fail
- }
- public class LogRuleInfo
- {
- public int Rule { get; set; }
- public bool UploadLogStatus { get; set; }
- public IList<DeviceLogCategory> LogCategorys { get; set; }
- public DateTime UpdateTime { get; set; }
- }
- public enum DeviceLogCategory
- {
- Error = 1,
- Warn = 2,
- Info = 3,
- Verb = 4
- }
- public class OrganizationInfo
- {
- public string Id { get; set; }
- public string Name { get; set; }
- public bool IsShared { get; set; }
- public string Description { get; set; }
- }
- }
|