wxr
2020-01-10 1a4b95a7ebef71838bd3eda2c22056bbf0db65ec
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
53
54
55
56
57
58
59
60
61
using System;
using System.Collections.Generic;
 
namespace HDL_ON.Entity
{
    public class Function
    {
        /*
        HDL统一协议格式:16bytes
        厂商代号:2bytes
        通讯方式:有线/无线/ZIGBEE等1bytes
        产品识别码:以添加设备的年月日时分秒 + 随机数8bytes
        功能类别:1bytes
        数据表索引地址:2bytes
        回路:2bytes
        举例: 0001-00-201910120900002567-01-0001-0001
        */
 
        public Function()
        {
        }
        /// <summary>
        /// 当前设备类型
        /// </summary>
        public FunctionType funcType = FunctionType.UnKown;
        /// <summary>
        /// 功能分类
        /// </summary>
        public string funcClassification;
        /// <summary>
        /// 功能ID
        /// </summary>
        public string sid;
        /// <summary>
        /// 备注
        /// </summary>
        public string Name;
        /// <summary>
        /// 保存数据时的文件名
        /// </summary>
        public string SavePath = "";
        /// <summary>
        /// A协议数据格式
        /// </summary>
        public string A_Protocol;
        /// <summary>
        /// bus协议数据格式
        /// </summary>
        public string Bus_Protocol;
        /// <summary>
        /// 房间ID列表
        /// 该功能添加到到房间列表
        /// </summary>
        public List<string> roomIdList = new List<string>();
        /// <summary>
        /// 最后控制的一次状态
        /// </summary>
        public string lastState = "";
 
    }
}