diff options
author | Iván Ávalos <avalos@disroot.org> | 2021-12-16 02:51:12 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2021-12-16 02:51:12 -0600 |
commit | 04b33cf071672a955c3e3229f8d48de4c215dc18 (patch) | |
tree | 2c914f063023057ea944d56a65d49ca02f35cb99 /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Device.kt | |
parent | ae8733682d89098348bd3d880f85028cb1bc2b6b (diff) | |
download | etbsa-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/Device.kt')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Device.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Device.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Device.kt index f8a1642..4ea74e6 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Device.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Device.kt @@ -13,6 +13,7 @@ package mx.trackermap.TrackerMap.client.models import kotlinx.datetime.LocalDateTime import kotlinx.serialization.Serializable +import kotlinx.serialization.json.JsonPrimitive /** @@ -48,6 +49,7 @@ data class Device ( val model: String? = null, val contact: String? = null, val category: String? = null, - val geofenceIds: Array<Int>? = null + val geofenceIds: Array<Int>? = null, + val attributes: Map<String, JsonPrimitive> = mapOf() ) { }
\ No newline at end of file |