using Infrastructure.Domain; using System.Collections.Generic; namespace Application.Domain.Entities { public class DeviceId : BaseEntity { public static List List { get; set; } = new List(); static DeviceId() { List.Add(new DeviceId { RawDeviceId = 0x0002, Name = "开关", Category = "电器", Icon = "switch", RawCategory = "Generic", EName = "On/Off Output" }); List.Add(new DeviceId { RawDeviceId = 0x0009, Name = "插座", Category = "电器", Icon = "socket", RawCategory = "Generic", EName = "Mains Power Outlet" }); List.Add(new DeviceId { RawDeviceId = 0x0051, Name = "智能插座", Category = "电器", Icon = "socket", RawCategory = "Generic", EName = "Smart plug" }); List.Add(new DeviceId { RawDeviceId = 0x0106, Name = "光强检测器", Category = "监测", Icon = "light", RawCategory = "Lighting", EName = "Light Sensor" }); List.Add(new DeviceId { RawDeviceId = 0x0163, Name = "红外遥控器", Category = "电器", Icon = "control", RawCategory = "wtf", EName = "wtf" }); List.Add(new DeviceId { RawDeviceId = 0x0202, Name = "窗帘", Category = "电器", Icon = "curtain", RawCategory = "Closures", EName = "Window Covering Device" }); List.Add(new DeviceId { RawDeviceId = 0x0309, Name = "粉尘检测器", Category = "监测", Icon = "dust", RawCategory = "HVAC", EName = "PM2.5 Sensor" }); List.Add(new DeviceId { RawDeviceId = 0x0402, Name = "报警器", Category = "安防", Icon = "alarm", RawCategory = "Intruder Alarm Systems", EName = "IAS Zone" }); } public string Name { get; set; } public string Icon { get; set; } public string Category { get; set; } public int RawDeviceId { get; set; } public string RawCategory { get; set; } public string EName { get; set; } } }