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