Skip to content

Commit

Permalink
chore: create model for relationship digital twins events
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Feb 15, 2023
1 parent 666405e commit ca1929b
Showing 1 changed file with 75 additions and 0 deletions.
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
)
}

0 comments on commit ca1929b

Please # to comment.