ManualMovementEvent
authorBernhard Tittelbach <xro@realraum.at>
Thu, 17 Oct 2013 01:46:19 +0000 (01:46 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Thu, 17 Oct 2013 01:46:19 +0000 (01:46 +0000)
go/r3events/basicevents.go
go/r3events/marshal_events.go

index f2ccc62..f2fa559 100644 (file)
@@ -25,6 +25,10 @@ type DoorCommandEvent struct {
     Ts int64
 }
 
+type DoorManualMovementEvent struct {
+    Ts int64
+}
+
 type DoorProblemEvent struct {
     Severity int
     Ts int64
index 6f087c8..5456bdb 100644 (file)
@@ -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)