using System; using System.Collections.Generic; namespace HDL_ON { [System.Serializable] public class CommonModular { /// /// 当前设备类型 /// public ModuleType Type = ModuleType.UnKown; /// /// 备注 /// public string ModularName; public string GatewayMAC = ""; /// /// 子网号 /// public byte SubnetID; /// /// 设备号 /// public byte DeviceID; [Newtonsoft.Json.JsonIgnore] public virtual string CommonModularID { get { return SubnetID.ToString () + "_" + DeviceID.ToString (); } } /// /// 保存数据时的文件名 /// public string SavePath = ""; public string MAC = string.Empty; /// /// 模块包含的功能列表 /// byte[0] 大类 /// byte[1] 小类 /// byte[2] 功能/回路总数 /// public List FunctionList = new List (); } }