correct timestamp format

This commit is contained in:
Tibor Tarnai 2019-12-11 10:19:33 +01:00
parent 0ed2e07bfa
commit b94adb14f1
2 changed files with 7 additions and 6 deletions

View file

@ -45,8 +45,8 @@ public class Device {
} }
@JsonProperty("born") @JsonProperty("born")
public Instant getBorn() { public String getBorn() {
return born; return born.toString();
} }
@JsonProperty("healthScore") @JsonProperty("healthScore")

View file

@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Instant; import java.time.Instant;
public class DeviceEvent implements IoTMessage { public class DeviceEvent implements IoTMessage {
@JsonProperty("id") @JsonProperty("id")
@ -45,8 +46,8 @@ public class DeviceEvent implements IoTMessage {
} }
@JsonProperty("born") @JsonProperty("born")
public Instant getBorn() { public String getBorn() {
return born; return born.toString();
} }
@JsonProperty("healthScore") @JsonProperty("healthScore")
@ -55,8 +56,8 @@ public class DeviceEvent implements IoTMessage {
} }
@JsonProperty("eventTime") @JsonProperty("eventTime")
public Instant getEventTime() { public String getEventTime() {
return eventTime; return eventTime.toString();
} }
@JsonProperty("isAlive") @JsonProperty("isAlive")