HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-09-22 ade5917841b0fdcb1df7353ef7c56b1a1bdc9282
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
using 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;
        }
 
    }
}