aboutsummaryrefslogtreecommitdiff
path: root/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-29 04:13:25 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-29 04:13:25 -0600
commite1d8854d7d5e789ed84e8948f17fb0dac0d44da6 (patch)
treeab84d7edaead85e03950102e091da51952635159 /shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils
parent64c4a58e644229b9d94233b3dd18b7805ffbb8d7 (diff)
downloadetbsa-trackermap-mobile-e1d8854d7d5e789ed84e8948f17fb0dac0d44da6.tar.gz
etbsa-trackermap-mobile-e1d8854d7d5e789ed84e8948f17fb0dac0d44da6.tar.bz2
etbsa-trackermap-mobile-e1d8854d7d5e789ed84e8948f17fb0dac0d44da6.zip
Initial implementation of device list, and added getStatus() and getEngineStop() methods to UnitInformation
Diffstat (limited to 'shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils')
-rw-r--r--shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt
new file mode 100644
index 0000000..be26416
--- /dev/null
+++ b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt
@@ -0,0 +1,12 @@
+package mx.trackermap.TrackerMap.utils
+
+import kotlinx.serialization.json.JsonPrimitive
+import kotlinx.serialization.json.longOrNull
+
+class Serialization {
+ companion object {
+ fun longOrNull(json: JsonPrimitive) = json.longOrNull
+
+ fun toString(json: JsonPrimitive) = json.toString()
+ }
+} \ No newline at end of file