From 33e2baf66c6d13f6a0cec953e875e736b2d368d8 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Thu, 17 Oct 2013 01:46:19 +0000 Subject: [PATCH] ManualMovementEvent --- go/r3events/basicevents.go | 4 ++++ go/r3events/marshal_events.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/go/r3events/basicevents.go b/go/r3events/basicevents.go index f2ccc62..f2fa559 100644 --- a/go/r3events/basicevents.go +++ b/go/r3events/basicevents.go @@ -25,6 +25,10 @@ type DoorCommandEvent struct { Ts int64 } +type DoorManualMovementEvent struct { + Ts int64 +} + type DoorProblemEvent struct { Severity int Ts int64 diff --git a/go/r3events/marshal_events.go b/go/r3events/marshal_events.go index 6f087c8..5456bdb 100644 --- a/go/r3events/marshal_events.go +++ b/go/r3events/marshal_events.go @@ -56,6 +56,11 @@ func UnmarshalByteByte2Event(data [][]byte) (event interface{}, category string, err = json.Unmarshal(data[1], newevent) category = "door" event = *newevent + case "DoorManualMovementEvent": + newevent := new(DoorManualMovementEvent) + err = json.Unmarshal(data[1], newevent) + category = "door" + event = *newevent case "BoreDoomButtonPressEvent": newevent := new(BoreDoomButtonPressEvent) err = json.Unmarshal(data[1], newevent) -- 1.7.10.4