| | |
| | | { |
| | | var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)); |
| | | Common.FileUtlis.Files.WriteFileByBytes(savePath, ssd); |
| | | return revPack.Code; |
| | | } |
| | | var scenes = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Scene>>(revPack.Data.ToString()); |
| | | var tempScene = scenes.Find((obj) => obj.sid == sid); |
| | |
| | | private Function ConvertFunctionObject() |
| | | { |
| | | var localFunction = FunctionList.List.GetDeviceFunctionList().Find((obj) => obj.sid == sid); |
| | | if(localFunction == null) |
| | | { |
| | | localFunction = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); |
| | | } |
| | | return localFunction; |
| | | } |
| | | |
| | |
| | | return sceneFunctionInfo; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设备 |
| | | /// 场景 =scene |
| | | /// 群控=5 |
| | | /// </summary> |
| | | public string type = "0"; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public string GetUintString() |
| | | { |
| | | if (!string.IsNullOrEmpty(UintString)) |
| | | if (!string.IsNullOrEmpty(UintString) && UintString!= "{}") |
| | | { |
| | | return UintString; |
| | | } |