From cd70a2a8a2bdebf51259d8f39ed110a34b9be9e5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 11 四月 2023 14:50:21 +0800
Subject: [PATCH] 修改启动屏幕

---
 HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs b/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs
index e58062f..1c25db0 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs
@@ -1,5 +1,7 @@
 锘縰sing System;
 using System.Collections.Generic;
+using HDL_ON.Common;
+using HDL_ON.DAL.Server;
 using Shared;
 
 namespace HDL_ON.Entity
@@ -86,8 +88,6 @@
         /// </summary>
         public List<GroupControlFunction> sids = new List<GroupControlFunction>();
 
-
-
         ///// <summary>
         ///// 鑾峰彇璁惧娣诲姞鍒版埧闂寸殑鎴块棿鍚嶇О
         ///// </summary>
@@ -114,6 +114,38 @@
         //    }
         //    return roomNameList;
         //}
+
+        /// <summary>
+        /// 缇ゆ帶鎺у埗
+        /// </summary>
+        /// <param name="pairs"></param>
+        public void Control(Dictionary<string,object> pairs)
+        {
+            try
+            {
+                var controlValues = new Dictionary<string, object>();
+                foreach(var p in pairs)
+                {
+                    controlValues.Add("key", p.Key);
+                    controlValues.Add("value", p.Value);
+                }
+                var pack = ApiUtlis.Ins.HttpRequest.ControlGroupControl(userDeviceGroupControlId, controlValues);
+                if (pack != null)
+                {
+                    if (pack.Code == StateCode.SUCCESS)
+                    {
+                        //DB_ResidenceData.Instance.HomeGateway.isSupportGroupControl.
+                    }
+                    else
+                    {
+                        MainPage.Log($"缇ゆ帶鎺у埗澶辫触,Code: {pack.Code}");
+                    }
+                }
+            }
+            catch (Exception ex){
+                MainPage.Log($"缇ゆ帶鎺у埗澶辫触: {ex.Message}");
+            }
+        }
     }
 
     public class GroupControlFunction
@@ -126,6 +158,8 @@
         /// 鍔熻兘spk
         /// </summary>
         public string spk = string.Empty;
+
+
     }
 
 

--
Gitblit v1.8.0