aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt16
1 files changed, 9 insertions, 7 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt
index 701252f..e504600 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt
@@ -11,6 +11,8 @@
*/
package mx.trackermap.TrackerMap.client.models
+import kotlinx.serialization.json.JsonPrimitive
+
/**
*
@@ -25,14 +27,14 @@ package mx.trackermap.TrackerMap.client.models
*/
data class Event (
- val id: kotlin.Int? = null,
- val type: kotlin.String? = null,
+ val id: Int? = null,
+ val type: String? = null,
/* in IS0 8601 format. eg. `1963-11-22T18:30:00Z` */
val eventTime: java.time.LocalDateTime? = null,
- val deviceId: kotlin.Int? = null,
- val positionId: kotlin.Int? = null,
- val geofenceId: kotlin.Int? = null,
- val maintenanceId: kotlin.Int? = null,
- val attributes: kotlin.Any? = null
+ val deviceId: Int? = null,
+ val positionId: Int? = null,
+ val geofenceId: Int? = null,
+ val maintenanceId: Int? = null,
+ val attributes: Map<String, JsonPrimitive> = mapOf()
) {
} \ No newline at end of file