| | |
| | | Dictionary<string, object> d = new Dictionary<string, object>(); |
| | | d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); |
| | | d.Add("deviceSerial", function.sid);//等同门锁序列号 |
| | | d.Add("platform", 1);//平台 |
| | | var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_DeleteDevice, "删除萤石门锁设备"); |
| | | d.Add("platform", 1);//平台 |
| | | var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_DeleteDevice, "删除萤石门锁设备"); |
| | | if (!this.DataChecking(responsePackNew)) |
| | | { |
| | | return; |
| | |
| | | |
| | | if (function != null) |
| | | { |
| | | action?.Invoke(false); |
| | | action?.Invoke(true); |
| | | } |
| | | } |
| | | catch (Exception s) |
| | |
| | | Dictionary<string, object> d = new Dictionary<string, object>(); |
| | | d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); |
| | | d.Add("deviceId", function.deviceId); |
| | | var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_Lockstatus, "删除萤石视频门锁状态"); |
| | | var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_Lockstatus, "获取萤石视频门锁状态"); |
| | | if (!this.DataChecking(responsePackNew)) |
| | | { |
| | | return new VideoDoorLockInfo(); |