| | |
| | | #endif |
| | | return list; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新开锁图标和电池状态 |
| | | /// </summary> |
| | | public void UpdateDoorLockState(PushMessageType pushMessageType, string homeId, string spk, string stateContent) |
| | | { |
| | | if (spk != SPK.VideoDoorLock) |
| | | { |
| | | return; |
| | | } |
| | | this.MainThread(() => |
| | | { |
| | | int childrenCount = MainPage.BasePageView.ChildrenCount - 1; |
| | | for (int i = childrenCount; childrenCount > i; i--) |
| | | { |
| | | View view = MainPage.BasePageView.GetChildren(i); |
| | | if (view is VideoDoorLockPage) |
| | | { |
| | | VideoDoorLockPage videoDoorLockPage = (VideoDoorLockPage)view; |
| | | if (videoDoorLockPage != null) |
| | | { |
| | | videoDoorLockPage.UpdateState(pushMessageType); |
| | | } |
| | | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | #region --------- 功能文件保存,删除 -------- |
| | | /// <summary> |
| | | /// 保存本地文件 |