| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.Entity; |
| | | |
| | | namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice |
| | | { |
| | | [System.Serializable] |
| | | public class Pir |
| | | public class Pir : Entity.Function |
| | | { |
| | | /// <summary> |
| | | /// 添加按键列表 |
| | | /// 红外宝列表 |
| | | /// </summary> |
| | | public static List<ButtonObj> BuottonList = new List<ButtonObj>(); |
| | | public static List<Pir> pirDeviceList = new List<Pir>(); |
| | | public string deviceId = string.Empty; |
| | | public string homeId = string.Empty; |
| | | public string gatewayId = string.Empty; |
| | | public string name = string.Empty; |
| | | public string sid = string.Empty; |
| | | public string spk = string.Empty; |
| | | public string oid = string.Empty; |
| | | public string omodel = string.Empty; |
| | | public bool collect =false; |
| | | public bool online = false; |
| | | public string controlCounter = string.Empty; |
| | | /// <summary> |
| | | /// 当前逻辑 |
| | | /// </summary> |
| | | public static Pir currPir; |
| | | /// <summary> |
| | | /// 遥控器列表 |
| | | /// </summary> |
| | | public List<Entity.Function> FunctioList = new List<Entity.Function>(); |
| | | |
| | | public List<Attributes> attributes = new List<Attributes>(); |
| | | } |
| | | |
| | | } |
| | | [Serializable] |
| | | public class Attributes |
| | | { |
| | | public string key = string.Empty; |
| | | public string data_type = string.Empty; |
| | | public int max = 0; |
| | | public int min = 0; |
| | | public int sort = 0; |
| | | public List<string> value = new List<string>(); |
| | | } |
| | | |
| | | |
| | | public class Control |
| | | [System.Serializable] |
| | | public class Control |
| | | { |
| | | /// <summary> |
| | | /// 红外宝设备Id |
| | | /// </summary> |
| | | public string deviceId = "0"; |
| | | public string deviceId = ""; |
| | | /// <summary> |
| | | /// sid |
| | | /// </summary> |
| | | public string sid = ""; |
| | | /// <summary> |
| | | /// 红外遥控器名称 |
| | | /// </summary> |
| | | public string name = "0"; |
| | | public string name = ""; |
| | | /// <summary> |
| | | /// 红外遥控器spk |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 码组号 |
| | | /// </summary> |
| | | public string group_id = "12"; |
| | | public string groupId = ""; |
| | | /// <summary> |
| | | /// 红外码 |
| | | /// 红外码库 |
| | | /// </summary> |
| | | public List<string> library = new List<string>(); |
| | | /// <summary> |
| | | /// 红外码 |
| | | /// 学习按键列表 |
| | | /// </summary> |
| | | public List<ButtonObj> status = new List<ButtonObj>(); |
| | | public List<AttributesStatus> status = new List<AttributesStatus>(); |
| | | } |
| | | public class ButtonObj |
| | | { |
| | | public string Key = string.Empty; |
| | | /// <summary> |
| | | /// #app 显示的文字 |
| | | /// </summary> |
| | | public string value = string.Empty; |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class DeviceType |
| | | { |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public string deviceType = string.Empty; |
| | | } |
| | | [System.Serializable] |
| | | public class Brand |
| | | { |
| | | /// <summary> |
| | |
| | | public string brandName = string.Empty; |
| | | |
| | | } |
| | | |
| | | public class Library |
| | | { |
| | | /// <summary> |
| | |
| | | public string irIndex = string.Empty; |
| | | |
| | | } |
| | | |
| | | |
| | | } |