rename PanicButton to BoreDooomButton and eliminate door id
[svn42.git] / go / r3-eventbroker_zmq / r3events / basicevents.go
1 // (c) Bernhard Tittelbach, 2013
2
3 package r3events
4
5
6 type DoorLockUpdate struct {
7     Locked bool
8     Ts int64
9 }
10
11 type DoorAjarUpdate struct {
12     Shut bool
13     Ts int64
14 }
15
16 type BackdoorAjarUpdate struct {
17     Shut bool
18     Ts int64
19 }
20
21 type DoorCommandEvent struct {
22     Command string
23     Using string
24     Who string
25     Ts int64
26 }
27
28 type BoreDoomButtonPressEvent struct {
29     Ts int64
30 }
31
32 type TempSensorUpdate struct {
33     Sensorindex int
34     Value float64
35     Ts int64
36 }
37
38 type IlluminationSensorUpdate struct {
39     Sensorindex int
40     Value int64
41     Ts int64
42 }
43
44 type TimeTick struct {
45     Ts int64
46 }
47
48 type MovementSensorUpdate struct {
49     Sensorindex int
50     Ts int64
51 }