100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Fix for deserialisation of PushNotificationButton
Rich Turnera7162107ac82
diff --git a/model/src/main/java/org/openremote/model/notification/PushNotificationButton.java b/model/src/main/java/org/openremote/model/notification/PushNotificationButton.javaindex cf4c3fad4..dfc0c1838 100644--- a/model/src/main/java/org/openremote/model/notification/PushNotificationButton.java+++ b/model/src/main/java/org/openremote/model/notification/PushNotificationButton.java@@ -19,6 +19,8 @@*/package org.openremote.model.notification;+import com.fasterxml.jackson.annotation.JsonCreator;+import com.fasterxml.jackson.annotation.JsonProperty;import org.openremote.model.value.ObjectValue;import org.openremote.model.value.Values;@@ -30,7 +32,8 @@ public class PushNotificationButton {protected String title;protected PushNotificationAction action;- public PushNotificationButton(String title, PushNotificationAction action) {+ @JsonCreator+ public PushNotificationButton(@JsonProperty("title") String title, @JsonProperty("action") PushNotificationAction action) {this.title = title;this.action = action;}diff --git a/profile/dev.yml b/profile/dev.ymlindex a5c395eb9..c795a0258 100644--- a/profile/dev.yml+++ b/profile/dev.yml@@ -39,6 +39,7 @@ services:# Use local deployment data in host-mapped directory for easy development. The# ../deployment directory is the one which will be baked into the managers image.- ${DEPLOYMENT_DIRECTORY:-../deployment}:/deployment+ # Need to map GWT manager client into container when in dev mode- ../client:/opt/app/clientenvironment:# Always wipe and enable dev optimizations