File tree Expand file tree Collapse file tree 2 files changed +73
-78
lines changed
src/main/kotlin/infrastructure/digitaltwins Expand file tree Collapse file tree 2 files changed +73
-78
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023. Smart Operating Block
3
+ *
4
+ * Use of this source code is governed by an MIT-style
5
+ * license that can be found in the LICENSE file or at
6
+ * https://opensource.org/licenses/MIT.
7
+ */
8
+
9
+ package infrastructure.digitaltwins.events
10
+
11
+ /* *
12
+ * The model of Azure Digital Twins Lifecycle events.
13
+ */
14
+ object LifecycleEvents {
15
+
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
+
44
+ /* *
45
+ * The event of creation or delete of a DT.
46
+ */
47
+ data class LifecycleEvent (
48
+ /* *
49
+ * The data section of the event.
50
+ */
51
+ val data : LifecycleEventData ,
52
+ /* *
53
+ * The type of the event.
54
+ */
55
+ val contenttype : String ,
56
+ /* *
57
+ * The trace parent of the event.
58
+ */
59
+ val traceparent : String ,
60
+ /* *
61
+ * The id of the event.
62
+ */
63
+ val id : String ,
64
+ /* *
65
+ * The type of the event.
66
+ */
67
+ val eventType : String ,
68
+ /* *
69
+ * The date and time of the event.
70
+ */
71
+ val eventDateTime : String
72
+ )
73
+ }
You can’t perform that action at this time.
0 commit comments