| | |
| | | /// <returns></returns> |
| | | public static List<HDL_ON.Entity.Function> GetGatewayDeviceList() |
| | | { |
| | | |
| | | return HDL_ON.Entity.DB_ResidenceData.functionList.GetAllFunction(); |
| | | List<HDL_ON.Entity.Function> list = new List<Entity.Function>(); |
| | | for (int i=0;i<3;i++) { |
| | | HDL_ON.Entity.Function function = new Entity.Function(); |
| | | switch (i) { |
| | | case 0: { |
| | | function.sid = "1234560001212121020182"; |
| | | function.name ="灯光"; |
| | | list.Add(function); |
| | | } |
| | | break; |
| | | case 1: { |
| | | |
| | | function.sid = "1234560001212121030182"; |
| | | function.name = "窗帘"; |
| | | list.Add(function); |
| | | } break; |
| | | case 2: { |
| | | function.sid = "1234560001212121040182"; |
| | | function.name = "空调"; |
| | | list.Add(function); |
| | | } break; |
| | | |
| | | } |
| | | } |
| | | return list; |
| | | //return HDL_ON.Entity.DB_ResidenceData.functionList.GetAllFunction(); |
| | | } |
| | | /// <summary> |
| | | /// 获取网关场景列表 |
| | |
| | | switch (if_type) { |
| | | case condition_if: { |
| | | deviceTypeList.Add(FunctionType.Relay); |
| | | deviceTypeList.Add(FunctionType.Curtain); |
| | | deviceTypeList.Add(FunctionType.AC); |
| | | } |
| | | break; |
| | | case target_if: |
| | | { |
| | | deviceTypeList.Add(FunctionType.Relay); |
| | | deviceTypeList.Add(FunctionType.Curtain); |
| | | deviceTypeList.Add(FunctionType.AC); |
| | | } |
| | | break; |
| | | } |