Terminals.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Flyinsono.DBCopy.Tool.Entities
  8. {
  9. internal class Terminals
  10. {
  11. public string Id { get; set; }
  12. public DateTime CreateTime { get; set; } = DateTime.MinValue;
  13. public DateTime UpdateTime { get; set; } = DateTime.MinValue;
  14. public bool IsDeleted { get; set; }
  15. //private readonly IList<AdminInfo> _users = new List<AdminInfo>();
  16. public string Name { get; set; }
  17. public string Password { get; set; }
  18. public string Description { get; set; }
  19. public string SerialNumber { get; set; }
  20. public string Model { get; set; }
  21. public bool SupportLive { get; set; }
  22. public virtual AdminInfo CreateAdmin { get; set; }
  23. public virtual OrganizationInfo Organization { get; set; }
  24. public virtual IList<AdminInfo> Users { get; set; } = new List<AdminInfo>();
  25. public virtual IList<AdminInfo> Owners { get; set; } = new List<AdminInfo>();
  26. public string FileToken { get; set; }
  27. public string CreatorUserId { get; set; }
  28. public bool IsRecommendedPoster { get; set; }
  29. public string UniquedId { get; set; }
  30. public bool CanEditInfo { get; set; }
  31. public string SoftwareVersion { get; set; }
  32. public bool IsSonopost { get; set; }
  33. /// <summary>
  34. /// AiDiagnosis Enabled
  35. /// </summary>
  36. public bool IsAIDiagnosis { get; set; }
  37. /// <summary>
  38. /// IsCarotidDiagnosis Enabled
  39. /// </summary>
  40. public bool IsCarotidDiagnosis { get; set; }
  41. public string CPU { get; set; }
  42. public string OS { get; set; }
  43. public LogRuleInfo LogRule { get; set; }
  44. /// <summary>
  45. /// 注册状态
  46. /// </summary>
  47. public TerminalRegistStatus RegistStatus { get; set; }
  48. /// <summary>
  49. /// 是否为虚拟设备(用户关联)
  50. /// </summary>
  51. public bool IsVirtualDevice { get; set; }
  52. public string Capability { get; set; }
  53. public SonopostVersonEnum SonopostVerson { get; set; }
  54. }
  55. public enum SonopostVersonEnum
  56. {
  57. Sonopost,
  58. Sonopost2
  59. }
  60. /// <summary>
  61. /// 终端注册状态
  62. /// </summary>
  63. public enum TerminalRegistStatus
  64. {
  65. /// <summary>
  66. /// 未注册
  67. /// </summary>
  68. None,
  69. /// <summary>
  70. /// 注册成功
  71. /// </summary>
  72. Success,
  73. /// <summary>
  74. /// 注册失败
  75. /// </summary>
  76. Fail
  77. }
  78. public class LogRuleInfo
  79. {
  80. public int Rule { get; set; }
  81. public bool UploadLogStatus { get; set; }
  82. public IList<DeviceLogCategory> LogCategorys { get; set; }
  83. public DateTime UpdateTime { get; set; }
  84. }
  85. public enum DeviceLogCategory
  86. {
  87. Error = 1,
  88. Warn = 2,
  89. Info = 3,
  90. Verb = 4
  91. }
  92. public class OrganizationInfo
  93. {
  94. public string Id { get; set; }
  95. public string Name { get; set; }
  96. public bool IsShared { get; set; }
  97. public string Description { get; set; }
  98. }
  99. }