| | |
| | | /// <returns></returns> |
| | | public static HDL_ON.Entity.Function GetDevice(string sid) |
| | | { |
| | | HDL_ON.Entity.Function device = new Entity.Function() { name= "Unknown",sid="设备不存在"}; |
| | | HDL_ON.Entity.Function device = new Entity.Function() { name= "Unknown"}; |
| | | List<HDL_ON.Entity.Function> deviceLists = GetGatewayDeviceList(); |
| | | foreach (var dev in deviceLists) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | public static HDL_ON.Entity.Scene GetSecne(string sid) |
| | | { |
| | | HDL_ON.Entity.Scene scene = new Entity.Scene() { name = "Unknown", sid = "场景不存在" }; |
| | | HDL_ON.Entity.Scene scene = new Entity.Scene() { name = "Unknown"}; |
| | | List<HDL_ON.Entity.Scene> sceneLists = GetSceneList(); |
| | | foreach (var sce in sceneLists) |
| | | { |
| | |
| | | deviceStrTypeList.Add(Language.StringByID(StringId.AC)); |
| | | } |
| | | var floorHeating = deviceList.Find((device) => device.functionType == FunctionType.FloorHeating); |
| | | if (ac != null) |
| | | if (floorHeating != null) |
| | | { |
| | | deviceStrTypeList.Add(Language.StringByID(StringId.FloorHeating)); |
| | | } |