| | |
| | | /// </summary> |
| | | public List<Function> GetAllDeviceFunctionList() |
| | | { |
| | | //if (deviceFunctionList == null) |
| | | if (deviceFunctionList == null || deviceFunctionList.Count == 0) |
| | | { |
| | | deviceFunctionList = new List<Function>(); |
| | | deviceFunctionList.AddRange(aCs); |
| | |
| | | for(int i=0;i<List.scenes.Count;) |
| | | { |
| | | var localScene = List.scenes[i]; |
| | | if (localScene == null) |
| | | { |
| | | List.scenes.Remove(localScene); |
| | | continue; |
| | | } |
| | | var newScene = sceneList.Find((obj) => obj.userSceneId == localScene.userSceneId); |
| | | if (newScene == null)//如果云端最新数据没有该条数据,则本地需要删掉该数据记录 |
| | | { |