generated from SmartOperatingBlock/kotlin-template-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create model for relationship digital twins events
- Loading branch information
1 parent
666405e
commit ca1929b
Showing
1 changed file
with
75 additions
and
0 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
src/main/kotlin/infrastructure/digitaltwins/events/RelationshipEvents.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* Copyright (c) 2023. Smart Operating Block | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE file or at | ||
* https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
package infrastructure.digitaltwins.events | ||
|
||
/** | ||
* The model of Azure Digital Twins Relationship Events. | ||
*/ | ||
object RelationshipEvents { | ||
|
||
/** | ||
* The section data of DT relationship events. | ||
*/ | ||
data class RelationshipEventData( | ||
/** | ||
* The id of the relationship. | ||
*/ | ||
val relationshipId: String, | ||
/** | ||
* The DT etag. | ||
*/ | ||
val etag: String, | ||
/** | ||
* The source ID of the DT. | ||
*/ | ||
val sourceId: String, | ||
/** | ||
* The name of the relationship. | ||
*/ | ||
val relationshipName: String, | ||
/** | ||
* The target id of the relationship. | ||
*/ | ||
val targetId: String, | ||
|
||
/** | ||
* The model of the relationship source. | ||
*/ | ||
val sourceModel: String | ||
) | ||
|
||
/** | ||
* The event of creation or delete of a relationship between DT. | ||
*/ | ||
data class RelationshipEvent( | ||
|
||
/** The section data. **/ | ||
val data: RelationshipEventData, | ||
/** | ||
* The type of the event. | ||
*/ | ||
val contenttype: String, | ||
/** | ||
* The trace parent of the event. | ||
*/ | ||
val traceparent: String, | ||
/** | ||
* The id of the event. | ||
*/ | ||
val id: String, | ||
/** | ||
* The type of the event. | ||
*/ | ||
val eventType: String, | ||
/** | ||
* The date and time of the event. | ||
*/ | ||
val eventDateTime: String | ||
) | ||
} |