Terminal.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using Mpeg4ConverterTool.Document;
  5. using Vinno.vCloud.Protocol.Infrastructures;
  6. namespace Mpeg4ConverterTool
  7. {
  8. internal class Terminal : TrackableEntity
  9. {
  10. private readonly ICollection<UserInfo> _users;
  11. public string Name { get; set; }
  12. public string Password { get; set; }
  13. public string Description { get; set; }
  14. public string SerialNumber { get; set; }
  15. public string Model { get; set; }
  16. public bool SupportLive { get; set; }
  17. public virtual AdminInfo CreateAdmin { get; set; }
  18. public virtual OrganizationInfo Organization { get; set; }
  19. public virtual ICollection<UserInfo> Users { get { return _users; } }
  20. public virtual ICollection<AdminInfo> Owners { get; private set; }
  21. public string FileToken { get; set; }
  22. public string CreatorUserId { get; set; }
  23. public bool IsRecommendedPoster { get; set; }
  24. public string UniquedId { get; set; }
  25. public bool CanEditInfo { get; set; }
  26. public string SoftwareVersion { get; set; }
  27. public bool IsSonopost { get; set; }
  28. /// <summary>
  29. /// AiDiagnosis Enabled
  30. /// </summary>
  31. public bool IsAIDiagnosis { get; set; }
  32. /// <summary>
  33. /// IsCarotidDiagnosis Enabled
  34. /// </summary>
  35. public bool IsCarotidDiagnosis { get; set; }
  36. /// <summary>
  37. /// 注册状态
  38. /// </summary>
  39. public TerminalRegistStatus RegistStatus { get; set; }
  40. private Terminal()
  41. {
  42. _users = new Collection<UserInfo>();
  43. Owners = new Collection<AdminInfo>();
  44. }
  45. public Terminal(string id, DateTime createTime) : base(id, createTime)
  46. {
  47. _users = new Collection<UserInfo>();
  48. Owners = new Collection<AdminInfo>();
  49. }
  50. }
  51. }