e5fa2dcf70d6bb412a0ab22d7b11f0f73e38ce8b
[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     DoorID int
8     Locked bool
9     Ts int64
10 }
11
12 type DoorAjarUpdate struct {
13     DoorID int
14     Shut bool
15     Ts int64
16 }
17
18 type DoorCommandEvent struct {
19     Command string
20     Using string
21     Who string
22     Ts int64
23 }
24
25 type ButtonPressUpdate struct {
26     Buttonindex int
27     Ts int64
28 }
29
30 type TempSensorUpdate struct {
31     Sensorindex int
32     Value float64
33     Ts int64
34 }
35
36 type IlluminationSensorUpdate struct {
37     Sensorindex int
38     Value int64
39     Ts int64
40 }
41
42 type TimeTick struct {
43     Ts int64
44 }
45
46 type MovementSensorUpdate struct {
47     Sensorindex int
48     Ts int64
49 }