diff options
author | Iván Ávalos <avalos@disroot.org> | 2021-12-04 00:31:32 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2021-12-04 00:31:32 -0600 |
commit | 0de7448f68def471cd34899f0012865103b0fb81 (patch) | |
tree | e73acdeb39ab9d01b20a25027ea5b459954afa29 /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt | |
parent | 2532fd70cb0ae8e5a37f1e84312f779b67d50d2f (diff) | |
download | etbsa-trackermap-mobile-0de7448f68def471cd34899f0012865103b0fb81.tar.gz etbsa-trackermap-mobile-0de7448f68def471cd34899f0012865103b0fb81.tar.bz2 etbsa-trackermap-mobile-0de7448f68def471cd34899f0012865103b0fb81.zip |
Removed unneeded files and made API functions suspending
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt index eb9dec4..f7651ac 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt @@ -25,7 +25,7 @@ class StatisticsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return kotlin.Array<Statistics> */ @Suppress("UNCHECKED_CAST") - fun statisticsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime): kotlin.Array<Statistics> { + suspend fun statisticsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime): kotlin.Array<Statistics> { val localVariableQuery: MultiValueMap = mapOf("from" to listOf("$from"), "to" to listOf("$to")) val localVariableConfig = RequestConfig( RequestMethod.GET, |