Merge branch 'feature/device-service' of https://github.com/jazzm0/microservices-demo into feature/device-service
This commit is contained in:
commit
4a81928c6a
3 changed files with 7 additions and 8 deletions
|
@ -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")
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
package com.sap.tamagotchi.model;
|
package com.sap.tamagotchi.model;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
|
||||||
|
|
||||||
class OwnerTest {
|
class OwnerTest {
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue