Skip to content

Commit ba5c2a7

Browse files
chore: change type of lifecycle events data
1 parent 03843bb commit ba5c2a7

File tree

1 file changed

+7
-29
lines changed

1 file changed

+7
-29
lines changed

src/main/kotlin/infrastructure/digitaltwins/events/LifecycleEvents.kt

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,14 @@ package infrastructure.digitaltwins.events
1313
*/
1414
object LifecycleEvents {
1515

16-
/**
17-
* The date section for lifecycle events.
18-
*/
19-
data class LifecycleEventData(
20-
/**
21-
* The DT id.
22-
*/
23-
val dtId: String,
24-
/**
25-
* The DT etag.
26-
*/
27-
val etag: String,
28-
/**
29-
* The metadata of the DT.
30-
*/
31-
val metadata: LifecycleMetadata
32-
)
33-
34-
/**
35-
* The metadata of the DT.
36-
*/
37-
data class LifecycleMetadata(
38-
/**
39-
* The model of the DT.
40-
*/
41-
val model: String
42-
)
43-
4416
/**
4517
* The event of creation or delete of a DT.
4618
*/
4719
data class LifecycleEvent(
4820
/**
4921
* The data section of the event.
5022
*/
51-
val data: LifecycleEventData,
23+
val data: Map<String, Any>,
5224
/**
5325
* The type of the event.
5426
*/
@@ -65,6 +37,12 @@ object LifecycleEvents {
6537
* The type of the event.
6638
*/
6739
val eventType: String,
40+
41+
/**
42+
* The model of the digital twin.
43+
*/
44+
val model: String,
45+
6846
/**
6947
* The date and time of the event.
7048
*/

0 commit comments

Comments
 (0)