| | |
| | | /// 获取网关房间列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static List<HDL_ON.Entity.Room> GetGatewayRoomListG(string name) |
| | | public static List<HDL_ON.Entity.Room> GetGatewayRoomList(string name) |
| | | { |
| | | |
| | | List<Entity.Room> roomList = new List<Entity.Room>(); |
| | |
| | | return deviceLists; |
| | | } |
| | | /// <summary> |
| | | /// 获取设备 |
| | | /// 获取当个设备 |
| | | /// </summary> |
| | | /// <param name="sid">设备唯一标识</param> |
| | | /// <returns></returns> |
| | | public static HDL_ON.Entity.Function GetDevice(string sid) |
| | | { |
| | | HDL_ON.Entity.Function device = new Entity.Function(); |
| | | HDL_ON.Entity.Function device = new Entity.Function() { name= "Unknown",sid="设备不存在"}; |
| | | List<HDL_ON.Entity.Function> deviceLists = GetGatewayDeviceList(); |
| | | foreach (var dev in deviceLists) |
| | | { |