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/DriversApi.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DriversApi.kt') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DriversApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DriversApi.kt index 52ae586..2a8f92c 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DriversApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DriversApi.kt @@ -28,7 +28,7 @@ class DriversApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return kotlin.Array */ @Suppress("UNCHECKED_CAST") - fun driversGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array { + suspend fun driversGet(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 DriversApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @param id * @return void */ - fun driversIdDelete(id: kotlin.Int): Unit { + suspend fun driversIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -78,7 +78,7 @@ class DriversApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return Driver */ @Suppress("UNCHECKED_CAST") - fun driversIdPut(body: Driver, id: kotlin.Int): Driver { + suspend fun driversIdPut(body: Driver, id: kotlin.Int): Driver { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -104,7 +104,7 @@ class DriversApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return Driver */ @Suppress("UNCHECKED_CAST") - fun driversPost(body: Driver): Driver { + suspend fun driversPost(body: Driver): Driver { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( -- cgit v1.2.3