1
wxr
2023-03-31 7e42cc13a14b7de31c9f5d5c61cdf24f3246335d
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
using System.Collections.Generic;
 
namespace Shared
{
    [System.Serializable]
    public class SecurityModul : Common
    {
        public SecurityModul () : base ()
        {
            this.Type = DeviceType.SecurityModule;
            DeviceTextID = SimpleControl.R.MyInternationalizationString.Security;
        }
 
        /// <summary>
        /// 区域号
        /// </summary>
        public byte AreaNumber = 0;
 
        /// <summary>
        ///  VacationArm = 1,//假期
        ///  AwayArm = 2,//离开
        ///  NightArm = 3,//晚上
        ///  NightWithGuestArm = 4,//夜晚会客
        ///  DayArm = 5,//白天
        ///  Disarm = 6,// 解除安防
        /// </summary>
        public byte AreaType = 6;
 
        public List<ScurityDryContact> SensorList = new List<ScurityDryContact>();
 
        public List<string> HistoricalRecords = new List<string>();
 
    }
 
    [System.Serializable]
    public class ScurityDryContact : Common
    {
        public ScurityDryContact () :base ()
        {
            this.Type = DeviceType.DryContact;
        }
        /// <summary>
        /// 0: 
        /// 1:
        /// 2:bypass启用
        /// </summary>
        public byte ByPass = 1;
 
        /// <summary>
        /// 0:不启用
        /// 1:启用
        /// </summary>
        public byte Enable = 0;
 
        /// <summary>
        /// 传感器类型
        /// 0:窗户
        /// 1:门
        /// 2:人体感应
        /// </summary>
        public byte SensorType = 0;
 
        /// <summary>
        /// 状态
        /// 0:关闭
        /// 1:开启
        /// </summary>
        public byte Status = 0;
 
        /// <summary>
        /// 区域号
        /// </summary>
        public byte AreaNumber = 0;
 
        /// <summary>
        /// 干接点在安防模块里面的索引
        /// </summary>
        public byte IndexOfScurity = 1;
    }
}