wxr
2019-11-25 29a6e6d747d13fc285c8dd86649417f60613388f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 []> ();
    }
}