-
Notifications
You must be signed in to change notification settings - Fork 0
/
change_type.go
90 lines (87 loc) · 1.84 KB
/
change_type.go
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
82
83
84
85
86
87
88
89
90
package satel
type ChangeType byte
const (
ZoneViolation ChangeType = iota
ZoneTamper
ZoneAlarm
ZoneTamperAlarm
ZoneAlarmMemory
ZoneTamperAlarmMemory
ZoneBypass
ZoneNoViolationTrouble
ZoneLongViolationTrouble
ArmedPartitionSuppressed
ArmedPartition
PartitionArmedInMode2
PartitionArmedInMode3
PartitionWith1stCodeEntered
PartitionEntryTime
PartitionExitTimeOver10s
PartitionExitTimeUnder10s
PartitionTemporaryBlocked
PartitionBlockedForGuardRound
PartitionAlarm
PartitionFireAlarm
PartitionAlarmMemory
PartitionFireAlarmMemory
Output
DoorOpened
DoorOpenedLong
StatusBit
TroublePart1
TroublePart2
TroublePart3
TroublePart4
TroublePart5
TroubleMemoryPart1
TroubleMemoryPart2
TroubleMemoryPart3
TroubleMemoryPart4
TroubleMemoryPart5
PartitionWithViolatedZones
ZoneIsolate
)
func (c ChangeType) String() string {
strings := [...]string{
"zone-violation",
"zone-tamper",
"zone-alarm",
"zone-tamper-alarm",
"zone-alarm-memory",
"zone-tamper-alarm-memory",
"zone-bypass",
"zone-no-violation-trouble",
"zone-long-violation-trouble",
"armed-partition-suppressed",
"armed-partition",
"partition-armed-mode-2",
"partition-armed-mode-3",
"partition-with-1st-code-entered",
"partition-entry-time",
"partition-exit-time-over-10s",
"partition-exit-time-under-10s",
"partition-temporary-blocked",
"partition-blocked-guard-round",
"partition-alarm",
"partition-fire-alarm",
"partition-alarm-memory",
"partition-fire-alarm-memory",
"output",
"doors-opened",
"doors-opened-long",
"status-bit",
"trouble-part-1",
"trouble-part-2",
"trouble-part-3",
"trouble-part-4",
"trouble-part-5",
"trouble-memory-part-1",
"trouble-memory-part-2",
"trouble-memory-part-3",
"trouble-memory-part-4",
"trouble-memory-part-5",
"partition-with-violated-zones",
"zone-isolate",
}
return strings[c]
}