using System; using System.Collections.Generic; namespace Shared.Phone.UserCenter.SmartSound { public class SmartSound { /// /// 本地所有的数据 /// public static List LocaData = new List(); /// /// 当前使用的数据(服务器同步下来的数据/当前被选中的数据) /// public List LayerList = new List(); 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 RoomList = new List(); } public class Room { /// /// 选中的房间 /// public bool Checked = false; public string RoomID; public string RoomName; public List DeviceList = new List(); public List SceneList = new List(); } public class Device { /// /// 选中的设备 /// 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; /// /// 1=开关灯,2=调光灯,3=RGB 灯,4=窗帘模块,5=开合帘,6=卷帘,7=空调,8=面板,9=新风 /// public int DeviceType; //public string RoomID; } public class Scene { /// /// 选中的场景 /// 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; } } }