From bb4bcd1b320502b36d19aacec52ed886a975249a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 19 七月 2022 11:04:00 +0800
Subject: [PATCH] 1.5.9打包

---
 HDL_ON/DAL/Server/HttpServerRequest.cs |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs
index bf89109..242ae06 100644
--- a/HDL_ON/DAL/Server/HttpServerRequest.cs
+++ b/HDL_ON/DAL/Server/HttpServerRequest.cs
@@ -44,6 +44,7 @@
         /// <param name="qType">鏃堕棿鏌ヨ绫诲瀷锛歨our=杩�24灏忔椂銆亀eek=杩戜竴鍛ㄣ�乵onth = 杩戜竴鏈� </param>
         /// <param name="deviceId">璁惧ID</param>
         /// <param name="deviceKey">鍔熻兘鏌ヨ绫诲瀷锛歱m25</param>
+        /// <param name="time">鍏蜂綋鏌ヨ鐨勬棩鏈燂紝閲戣寕娓╂帶鍣ㄤ娇鐢�</param>
         /// <returns></returns>
         public ResponsePackNew GetSensorHistory(string qType, string deviceId, string deviceKey, string time = "")
         {
@@ -2183,6 +2184,51 @@
             var requestJson = HttpUtil.GetSignRequestJson(d);
             return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_CancelCollectDevice, requestJson);
         }
+        /// <summary>
+        /// 璁惧鎵╁睍閰嶇疆
+        /// </summary>
+        public ResponsePackNew DeviceExtSet(string deviceId,ExtSet extSet)
+        {
+            Dictionary<string, object> d = new Dictionary<string, object>();
+            d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id);
+            d.Add("deviceId",  deviceId );
+            d.Add("extSet", extSet);
+
+            var requestJson = HttpUtil.GetSignRequestJson(d);
+            return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_DeviceExtSet, requestJson);
+        }
+        /// <summary>
+        /// 鑾峰彇璁惧娑堟伅瑙勫垯閰嶇疆
+        /// </summary>
+        /// <returns></returns>
+        public ResponsePackNew GetDeviceMessageRulesSet(string deviceId)
+        {
+            Dictionary<string, object> 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_GetDeviceMessageRulesSet, requestJson);
+        }
+        /// <summary>
+        /// 璁惧娑堟伅瑙勫垯閰嶇疆
+        /// </summary>
+        /// <param name="deviceId"></param>
+        /// <param name="conditionIdentify"></param>
+        /// <param name="push"></param>
+        /// <returns></returns>
+        public ResponsePackNew DeviceMessageRulesSet(string deviceId,string conditionIdentify,bool push)
+        {
+            Dictionary<string, object> d = new Dictionary<string, object>();
+            d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id);
+            d.Add("deviceId", deviceId);
+            d.Add("conditionIdentify", conditionIdentify);
+            d.Add("push", push);
+
+            var requestJson = HttpUtil.GetSignRequestJson(d);
+            return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_DeviceMessageRulesSet, requestJson);
+        }
+
 
         #endregion
 

--
Gitblit v1.8.0