| | |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes(){ key = "status",curValue= "on",state = "on" }, |
| | | new FunctionAttributes(){ key = "battery_value",curValue= "2000",state = "2000" }, |
| | | new FunctionAttributes(){ key = "battery_percentage",curValue= "80",state = "80" }, |
| | | new FunctionAttributes(){ key = "battery_state",curValue= "high",state = "high" }, |
| | | new FunctionAttributes(){ key = "alarm_status",curValue= "alarm",state = "alarm" }, |
| | | new FunctionAttributes(){ key = "battery_value",curValue= "200",state = "200" }, |
| | | new FunctionAttributes(){ key = "battery_percentage",curValue= "10",state = "10" }, |
| | | new FunctionAttributes(){ key = "battery_state",curValue= "low",state = "low" }, |
| | | }, |
| | | }); |
| | | |
| | |
| | | |
| | | /// <summary> |
| | | /// 加载设备功能显示区域 |
| | | /// Tag 收藏卡片 |
| | | /// </summary> |
| | | void LoadDeviceFunctionControlZone() |
| | | { |
| | |
| | | |
| | | /// <summary> |
| | | /// 加载功能控制卡片 |
| | | /// Tag 卡片自定义 |
| | | /// </summary> |
| | | void LoadDeviceFunctionDiv(FrameLayout view, Function function) |
| | | { |
| | |
| | | LoadEvent_ControlClothesHanger(function, btnUp, btnDown); |
| | | |
| | | } |
| | | //紧急求助 |
| | | else if (function.spk == SPK.SensorHelp) |
| | | { |
| | | |
| | | } |
| | | |
| | | else |
| | | { |