| | |
| | | public Function() |
| | | { |
| | | } |
| | | |
| | | |
| | | #region base info |
| | | /// <summary> |
| | |
| | | } |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 功能类型 |
| | | /// </summary> |
| | | ///// <summary> |
| | | ///// 功能类型 |
| | | ///// </summary> |
| | | public FunctionType functionType |
| | | { |
| | | get |
| | | { |
| | | var _functionTypeString = sid.Substring(16, 4); |
| | | return (FunctionType)Enum.ToObject(typeof(FunctionType), Convert.ToInt32(_functionTypeString, 16)); |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | /// 是否收藏 |
| | | /// </summary> |
| | | public bool collect = false; |
| | | /// <summary> |
| | | /// 是否在线 |
| | | /// </summary> |
| | | public bool online = true; |
| | | /// <summary> |
| | | /// 云端数据创建的时间 |
| | | /// </summary> |
| | |
| | | public string spk = ""; |
| | | |
| | | public List<AlinkControlAttributes> attributes = new List<AlinkControlAttributes>(); |
| | | //[Newtonsoft.Json.JsonIgnore] |
| | | public BusData bus = new BusData(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | public class BusData |
| | | { |
| | | public string addresses = "FFFF"; |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public byte SubnetID |
| | | { |
| | | get |
| | |
| | | return Convert.ToByte(addresses.Substring(0, 2), 16); |
| | | } |
| | | } |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public byte DeviceID |
| | | { |
| | | get |