From: Bernhard Tittelbach Date: Thu, 17 Oct 2013 01:46:19 +0000 (+0000) Subject: ManualMovementEvent X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=33e2baf66c6d13f6a0cec953e875e736b2d368d8;p=svn42.git ManualMovementEvent --- 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)