From 0de7448f68def471cd34899f0012865103b0fb81 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sat, 4 Dec 2021 00:31:32 -0600 Subject: Removed unneeded files and made API functions suspending --- .../kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt index 946ec90..ede7586 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt @@ -28,7 +28,7 @@ class GeofencesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @return kotlin.Array */ @Suppress("UNCHECKED_CAST") - fun geofencesGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array { + suspend fun geofencesGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array { val localVariableQuery: MultiValueMap = mapOf("all" to listOf("$all"), "userId" to listOf("$userId"), "deviceId" to listOf("$deviceId"), "groupId" to listOf("$groupId"), "refresh" to listOf("$refresh")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -52,7 +52,7 @@ class GeofencesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @param id * @return void */ - fun geofencesIdDelete(id: kotlin.Int): Unit { + suspend fun geofencesIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -78,7 +78,7 @@ class GeofencesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @return Geofence */ @Suppress("UNCHECKED_CAST") - fun geofencesIdPut(body: Geofence, id: kotlin.Int): Geofence { + suspend fun geofencesIdPut(body: Geofence, id: kotlin.Int): Geofence { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -104,7 +104,7 @@ class GeofencesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @return Geofence */ @Suppress("UNCHECKED_CAST") - fun geofencesPost(body: Geofence): Geofence { + suspend fun geofencesPost(body: Geofence): Geofence { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( -- cgit v1.2.3