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/MaintenanceApi.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/MaintenanceApi.kt')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/MaintenanceApi.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/MaintenanceApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/MaintenanceApi.kt index fe7f635..7fcee92 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/MaintenanceApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/MaintenanceApi.kt @@ -28,7 +28,7 @@ class MaintenanceApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return kotlin.Array<Maintenance> */ @Suppress("UNCHECKED_CAST") - fun maintenanceGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array<Maintenance> { + suspend fun maintenanceGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array<Maintenance> { 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 MaintenanceApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @param id * @return void */ - fun maintenanceIdDelete(id: kotlin.Int): Unit { + suspend fun maintenanceIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -78,7 +78,7 @@ class MaintenanceApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return Maintenance */ @Suppress("UNCHECKED_CAST") - fun maintenanceIdPut(body: Maintenance, id: kotlin.Int): Maintenance { + suspend fun maintenanceIdPut(body: Maintenance, id: kotlin.Int): Maintenance { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -104,7 +104,7 @@ class MaintenanceApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return Maintenance */ @Suppress("UNCHECKED_CAST") - fun maintenancePost(body: Maintenance): Maintenance { + suspend fun maintenancePost(body: Maintenance): Maintenance { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( |