f2ccc6235b4ff4cffda6dfffe2c6113fce7746e3
[svn42.git] / go / 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 DoorProblemEvent struct {
29     Severity int
30     Ts int64
31 }
32
33 type BoreDoomButtonPressEvent struct {
34     Ts int64
35 }
36
37 type TempSensorUpdate struct {
38     Sensorindex int
39     Value float64
40     Ts int64
41 }
42
43 type IlluminationSensorUpdate struct {
44     Sensorindex int
45     Value int64
46     Ts int64
47 }
48
49 type DustSensorUpdate struct {
50     Sensorindex int
51     Value int64
52     Ts int64
53 }
54
55 type RelativeHumiditySensorUpdate struct {
56     Sensorindex int
57     Percent int
58     Ts int64
59 }
60
61 type NetDHCPACK struct {
62     Mac string
63     IP string
64     Name string
65     Ts int64
66 }
67
68 type NetGWStatUpdate struct {
69     WifiRX int32
70     WifiTX int32
71     EthernetRX int32
72     EthernetTX int32
73     InternetRX int32
74     InternetTX int32
75     NumNeigh int32
76     Ts int64
77 }
78
79 type TimeTick struct {
80     Ts int64
81 }
82
83 type MovementSensorUpdate struct {
84     Sensorindex int
85     Ts int64
86 }