aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-04 00:31:32 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-04 00:31:32 -0600
commit0de7448f68def471cd34899f0012865103b0fb81 (patch)
treee73acdeb39ab9d01b20a25027ea5b459954afa29 /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt
parent2532fd70cb0ae8e5a37f1e84312f779b67d50d2f (diff)
downloadetbsa-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/GeofencesApi.kt')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GeofencesApi.kt8
1 files changed, 4 insertions, 4 deletions
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<Geofence>
*/
@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<Geofence> {
+ 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<Geofence> {
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(