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 --- .../mx/trackermap/TrackerMap/client/apis/NotificationsApi.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/NotificationsApi.kt') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/NotificationsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/NotificationsApi.kt index f86d191..86c34d0 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/NotificationsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/NotificationsApi.kt @@ -29,7 +29,7 @@ class NotificationsApi(basePath: kotlin.String = "https://demo.traccar.org/api") * @return kotlin.Array */ @Suppress("UNCHECKED_CAST") - fun notificationsGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array { + suspend fun notificationsGet(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, @@ -53,7 +53,7 @@ class NotificationsApi(basePath: kotlin.String = "https://demo.traccar.org/api") * @param id * @return void */ - fun notificationsIdDelete(id: kotlin.Int): Unit { + suspend fun notificationsIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -79,7 +79,7 @@ class NotificationsApi(basePath: kotlin.String = "https://demo.traccar.org/api") * @return Notification */ @Suppress("UNCHECKED_CAST") - fun notificationsIdPut(body: Notification, id: kotlin.Int): Notification { + suspend fun notificationsIdPut(body: Notification, id: kotlin.Int): Notification { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -105,7 +105,7 @@ class NotificationsApi(basePath: kotlin.String = "https://demo.traccar.org/api") * @return Notification */ @Suppress("UNCHECKED_CAST") - fun notificationsPost(body: Notification): Notification { + suspend fun notificationsPost(body: Notification): Notification { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -129,7 +129,7 @@ class NotificationsApi(basePath: kotlin.String = "https://demo.traccar.org/api") * * @return void */ - fun notificationsTestPost(): Unit { + suspend fun notificationsTestPost(): Unit { val localVariableConfig = RequestConfig( RequestMethod.POST, @@ -153,7 +153,7 @@ class NotificationsApi(basePath: kotlin.String = "https://demo.traccar.org/api") * @return kotlin.Array */ @Suppress("UNCHECKED_CAST") - fun notificationsTypesGet(): kotlin.Array { + suspend fun notificationsTypesGet(): kotlin.Array { val localVariableConfig = RequestConfig( RequestMethod.GET, -- cgit v1.2.3