From f71e74b5f0d2716fbf05da016cdaa18d64e09f80 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 31 十二月 2020 17:01:18 +0800
Subject: [PATCH] 又换完成最新门锁。空气质量传感器完成数据和基本配置功能。开发图表和自动化的同事可下载此代码

---
 ZigbeeApp/Shared/Phone/SmartSound/SmartSound.cs |   91 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 91 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/SmartSound/SmartSound.cs b/ZigbeeApp/Shared/Phone/SmartSound/SmartSound.cs
new file mode 100755
index 0000000..09bfefc
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/SmartSound/SmartSound.cs
@@ -0,0 +1,91 @@
+锘縰sing System;
+using System.Collections.Generic;
+
+namespace Shared.Phone.UserCenter.SmartSound
+{
+    public class SmartSound
+    {
+        
+        /// <summary>
+        /// 鏈湴鎵�鏈夌殑鏁版嵁
+        /// </summary>
+        public static List<Layer> LocaData = new List<Layer>();
+        /// <summary>
+        /// 褰撳墠浣跨敤鐨勬暟鎹�(鏈嶅姟鍣ㄥ悓姝ヤ笅鏉ョ殑鏁版嵁/褰撳墠琚�変腑鐨勬暟鎹�)
+        /// </summary>
+        public List<Layer> LayerList = new List<Layer>();
+
+        public SmartSound()
+        {
+        }
+
+        private static SmartSound smartSound = null;
+        public string UserID;
+        public string TokenID;
+        public string HomeID;
+
+        public static SmartSound getInstantiate()
+        {
+            if (smartSound == null)
+                smartSound = new SmartSound();
+
+            return smartSound;
+        }
+
+        public class Layer
+        {
+            public string LayerID;
+            public string LayerName;
+            public List<Room> RoomList = new List<Room>();
+        }
+
+        public class Room
+        {
+            /// <summary>
+            /// 閫変腑鐨勬埧闂�
+            /// </summary>
+            public bool Checked = false;
+            public string RoomID;
+            public string RoomName;
+            public List<Device> DeviceList = new List<Device>();
+            public List<Scene> SceneList = new List<Scene>();
+        }
+
+        public class Device
+        {
+            /// <summary>
+            /// 閫変腑鐨勮澶�
+            /// </summary>
+            public bool Checked = false;
+            //public string Id;
+            public string DeviceAddress;
+            public int Epoint;
+            //public int ClusterID;
+            public string DeviceName;
+            public string NicksName;
+            public string GatewayID;
+            /// <summary>
+            /// 1=寮�鍏崇伅锛�2=璋冨厜鐏紝3=RGB 鐏紝4=绐楀笜妯″潡锛�5=寮�鍚堝笜锛�6=鍗峰笜锛�7=绌鸿皟锛�8=闈㈡澘锛�9=鏂伴
+            /// </summary>
+            public int DeviceType;
+            //public string RoomID;
+        }
+
+        public class Scene
+        {
+            /// <summary>
+            /// 閫変腑鐨勫満鏅�
+            /// </summary>
+            public bool Checked = false;
+            //public string Id;
+            public string SceneName;
+            public int SceneID;
+            public int DelayTime;
+            //public int ClusterID;
+            public string NicksName;
+            //public string RoomID;
+            public string GatewayID;
+        }
+
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0