using System; using WingServerCommon.Log; using WingServerCommon.Interfaces.OpLog; namespace WingServerCommon.Interfaces.Cache { public interface IDeviceInfosManager : IBaseCacheManager { } public class DeviceInfosManager : CacheManager, IDeviceInfosManager { public DeviceInfosManager() : base() { } } public class CacheDeviceDTO : ICacheObject { /// /// 设备编码 /// /// test0122 public string Code { get; set; } /// /// 设备序列号 /// /// test010122 public string SerialNumber { get; set; } /// /// 设备密码 /// /// ABC123 public string Password { get; set; } /// /// 设备名称 /// /// 测试设备0122 public string Name { get; set; } /// /// 备注 /// /// 测试Description22 public string Description { get; set; } /// /// 设备型号 /// /// M001 public string DeviceModel { get; set; } /// /// 设备类型 /// /// X00001 public string DeviceType { get; set; } /// /// 设备头图 /// /// http://192.168.6.117:9001/Storage/B1154C6500E4F174249224B41284498E_7_0_0_0.PNG public string HeadPicUrl { get; set; } /// /// 设备软件版本 /// /// 1.11.0 public string DeviceSoftwareVersion { get; set; } /// /// 设备SDK版本 /// /// 1.11.1 public string SDKSoftwareVersion { get; set; } /// /// 设备所属组织 /// /// Organization_2022012520473430DnW3 public string OrganizationCode { get; set; } /// /// 组织下属科室 /// /// Organization_2022012520473430DnW32 public string DepartmentCode { get; set; } /// /// 超声机动态唯一码 /// /// test01010122 public string ShortCode { get; set; } /// /// 是否设备自动分享 /// /// true public bool IsAutoShared { get; set; } /// /// 最近登录时间 /// /// 2022-02-28T09:21:38.861Z public DateTime LastLoginTime { get; set; } = DateTime.UtcNow; /// /// 系统版本 /// /// 2.2.27.5 public string SystemVersion { get; set; } = string.Empty; /// /// CPU型号 /// /// I5-10400 public string CPUModel { get; set; } = string.Empty; /// /// 系统语言 /// /// Chinese public string SystemLanguage { get; set; } = string.Empty; /// /// AI应用集合 /// public List DiagnosisModules { get; set; } = new(); /// /// 报告转发配置集合 /// public List ReportPosterCodes { get; set; } = new(); /// /// 是否把多路视屏合流 /// /// public bool MergedChannel { get; set; } /// /// 合流的画面宽度 /// /// public int MergedVideoOutputWidth { get; set; } /// /// 合流的画面高度 /// /// public int MergedVideoOutputHeight { get; set; } /// /// 下载地址模式 /// /// public int DownloadModeSetting { get; set; } /// /// 视屏设备画面信息 /// /// public IList VideoDeviceInfos { get; set; } = new List(); /// /// 直播开关,true=开启,false=关闭 /// /// public bool LiveOpened { get; set; } /// /// 是否支持Rtc /// /// public bool SupportRtc { get; set; } /// /// 设备展示名称 /// /// public string DisplayName { get { var displayName = Description; if (string.IsNullOrWhiteSpace(displayName)) { displayName = Name; } return displayName; } } /// /// 连接方式 /// /// public int ProxyType { get; set; } = 0; } /// /// 视屏设备画面信息 /// public class CacheVideoDeviceInfo { /// /// 设备Id(比如超声机唯一码,用来表示这是超声机画面) /// /// public string VideoDeviceId { get; set; } /// /// 视屏画面设备来源的类型(设备主屏或摄像头) /// /// public int VideoDeviceSourceType { get; set; } /// /// 设备设置的画面宽度,上报值 /// /// public int Width { get; set; } /// /// 设备设置的画面高度,上报值 /// /// public int Height { get; set; } /// /// 设备设置的画面宽度 /// /// public int OutputWidth { get; set; } /// /// 设备设置的画面高度 /// /// public int OutputHeight { get; set; } /// /// 帧率 /// /// public int VideoFps { get; set; } = 20; /// /// 码率 /// /// public int VideoBitrate { get; set; } = 2000; /// /// 最小码率 /// /// public int MinVideoBitrate { get; set; } = 1000; } }