From 23d7cefd31bd431dd177b3b5267331e070c5fc5f Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 17 七月 2023 13:26:01 +0800 Subject: [PATCH] 视频门锁 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 30e9b71..4e6e381 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -3384,6 +3384,69 @@ return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_SetFaceRecognitionUnlockCfg, requestJson); } + /// <summary> + /// 鏌ヨ闂ㄩ攣绯荤粺澹伴煶 + /// </summary> + /// <param name="deviceId"></param> + /// <returns></returns> + public ResponsePackNew GetDoorLockSystemSound(string deviceId) + { + var d = new Dictionary<string, object>(); + d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); + d.Add("deviceId", deviceId); + var requestJson = HttpUtil.GetSignRequestJson(d); + return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetDoorLockSystemSound, requestJson); + } + + /// <summary> + /// 璁剧疆闂ㄩ攣绯荤粺澹伴煶 + /// </summary> + /// <param name="deviceId"></param> + /// <param name="sound"></param> + /// <returns></returns> + public ResponsePackNew SetDoorLockSystemSound(string deviceId,string sound) + { + var d = new Dictionary<string, object>(); + d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); + d.Add("deviceId", deviceId); + d.Add("sound", sound); + var requestJson = HttpUtil.GetSignRequestJson(d); + return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_SetDoorLockSystemSound, requestJson); + } + + /// <summary> + /// 鏌ヨ闂ㄩ搩鎻愮ず闊� + /// </summary> + /// <param name="deviceId"></param> + /// <returns></returns> + public ResponsePackNew GetDoorBellTone(string deviceId) + { + var d = new Dictionary<string, object>(); + d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); + d.Add("deviceId", deviceId); + var requestJson = HttpUtil.GetSignRequestJson(d); + return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetDoorBellTone, requestJson); + } + + /// <summary> + /// 璁剧疆闂ㄩ搩鎻愮ず闊� + /// </summary> + /// <param name="deviceId"></param> + /// <param name="volume"></param> + /// <returns></returns> + public ResponsePackNew SetDoorBellTone(string deviceId, string volume) + { + var d = new Dictionary<string, object>(); + d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); + d.Add("deviceId", deviceId); + d.Add("volume", volume); + var requestJson = HttpUtil.GetSignRequestJson(d); + return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_SetDoorBellTone, requestJson); + } + + + + #endregion #endregion -- Gitblit v1.8.0