X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=go%2Fr3events%2Fbasicevents.go;fp=go%2Fr3events%2Fbasicevents.go;h=73776cb2227a8fc37afa9dacdc1766cefdbe8b1e;hb=0ae7860ca033f98cfb98721ebb0d4b2b42700d40;hp=0000000000000000000000000000000000000000;hpb=b40171692bb6090aae3e75c4eb355ce077a61a89;p=svn42.git diff --git a/go/r3events/basicevents.go b/go/r3events/basicevents.go new file mode 100644 index 0000000..73776cb --- /dev/null +++ b/go/r3events/basicevents.go @@ -0,0 +1,56 @@ +// (c) Bernhard Tittelbach, 2013 + +package r3events + + +type DoorLockUpdate struct { + Locked bool + Ts int64 +} + +type DoorAjarUpdate struct { + Shut bool + Ts int64 +} + +type BackdoorAjarUpdate struct { + Shut bool + Ts int64 +} + +type DoorCommandEvent struct { + Command string + Using string + Who string + Ts int64 +} + +type DoorProblemEvent struct { + Severity int + Ts int64 +} + +type BoreDoomButtonPressEvent struct { + Ts int64 +} + +type TempSensorUpdate struct { + Sensorindex int + Value float64 + Ts int64 +} + +type IlluminationSensorUpdate struct { + Sensorindex int + Value int64 + Ts int64 +} + +type TimeTick struct { + Ts int64 +} + +type MovementSensorUpdate struct { + Sensorindex int + Ts int64 +} \ No newline at end of file