File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/main/kotlin/com/ctrlhub/core/assets/equipment/exposures/resource Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ class EquipmentExposureResource @JsonCreator constructor(
15
15
@JsonProperty(" id" ) @Id(StringIdHandler ::class ) var id : String = " " ,
16
16
@JsonProperty(" start_time" ) var startTime : LocalDateTime ? = null ,
17
17
@JsonProperty(" end_time" ) var endTime : LocalDateTime ? = null ,
18
+ @JsonProperty(" location" ) var location : EquipmentExposureLocation ? = null ,
18
19
@JsonProperty(" ppe" ) var ppe : EquipmentExposurePpe ? = EquipmentExposurePpe (),
19
-
20
20
@Meta var meta : EquipmentExposureMeta = EquipmentExposureMeta ()
21
21
)
22
22
@@ -50,4 +50,16 @@ class EquipmentExposureHavsExposureValues @JsonCreator constructor(
50
50
points = null ,
51
51
a8 = null
52
52
)
53
+ }
54
+
55
+ class EquipmentExposureLocation @JsonCreator constructor(
56
+ @JsonProperty(" type" )
57
+ val type : String = " Point" ,
58
+
59
+ @JsonProperty(" coordinates" )
60
+ val coordinates : List <Double >
61
+ ) {
62
+ constructor (): this (
63
+ coordinates = emptyList()
64
+ )
53
65
}
You can’t perform that action at this time.
0 commit comments