aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-16 02:51:12 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-16 02:51:12 -0600
commit04b33cf071672a955c3e3229f8d48de4c215dc18 (patch)
tree2c914f063023057ea944d56a65d49ca02f35cb99 /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Event.kt
parentae8733682d89098348bd3d880f85028cb1bc2b6b (diff)
downloadetbsa-trackermap-mobile-04b33cf071672a955c3e3229f8d48de4c215dc18.tar.gz
etbsa-trackermap-mobile-04b33cf071672a955c3e3229f8d48de4c215dc18.tar.bz2
etbsa-trackermap-mobile-04b33cf071672a955c3e3229f8d48de4c215dc18.zip
- Basically fully implemented device item with all details and icons.
- Attributes for all models are deserialized as Map<String, JsonPrimitive>. - Removed redundant qualifier names
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