aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CommandsApi.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/CommandsApi.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/CommandsApi.kt')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CommandsApi.kt14
1 files changed, 7 insertions, 7 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CommandsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CommandsApi.kt
index a1ef21f..8f60153 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CommandsApi.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CommandsApi.kt
@@ -29,7 +29,7 @@ class CommandsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Ap
* @return kotlin.Array<Command>
*/
@Suppress("UNCHECKED_CAST")
- fun commandsGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array<Command> {
+ suspend fun commandsGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array<Command> {
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 CommandsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Ap
* @param id
* @return void
*/
- fun commandsIdDelete(id: kotlin.Int): Unit {
+ suspend fun commandsIdDelete(id: kotlin.Int): Unit {
val localVariableConfig = RequestConfig(
RequestMethod.DELETE,
@@ -79,7 +79,7 @@ class CommandsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Ap
* @return Command
*/
@Suppress("UNCHECKED_CAST")
- fun commandsIdPut(body: Command, id: kotlin.Int): Command {
+ suspend fun commandsIdPut(body: Command, id: kotlin.Int): Command {
val localVariableBody: kotlin.Any? = body
val localVariableConfig = RequestConfig(
@@ -105,7 +105,7 @@ class CommandsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Ap
* @return Command
*/
@Suppress("UNCHECKED_CAST")
- fun commandsPost(body: Command): Command {
+ suspend fun commandsPost(body: Command): Command {
val localVariableBody: kotlin.Any? = body
val localVariableConfig = RequestConfig(
@@ -131,7 +131,7 @@ class CommandsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Ap
* @return kotlin.Array<Command>
*/
@Suppress("UNCHECKED_CAST")
- fun commandsSendGet(deviceId: kotlin.Int? = null): kotlin.Array<Command> {
+ suspend fun commandsSendGet(deviceId: kotlin.Int? = null): kotlin.Array<Command> {
val localVariableQuery: MultiValueMap = mapOf("deviceId" to listOf("$deviceId"))
val localVariableConfig = RequestConfig(
RequestMethod.GET,
@@ -156,7 +156,7 @@ class CommandsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Ap
* @return Command
*/
@Suppress("UNCHECKED_CAST")
- fun commandsSendPost(body: Command): Command {
+ suspend fun commandsSendPost(body: Command): Command {
val localVariableBody: kotlin.Any? = body
val localVariableConfig = RequestConfig(
@@ -184,7 +184,7 @@ class CommandsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Ap
* @return kotlin.Array<CommandType>
*/
@Suppress("UNCHECKED_CAST")
- fun commandsTypesGet(deviceId: kotlin.Int? = null, protocol: kotlin.String? = null, textChannel: kotlin.Boolean? = null): kotlin.Array<CommandType> {
+ suspend fun commandsTypesGet(deviceId: kotlin.Int? = null, protocol: kotlin.String? = null, textChannel: kotlin.Boolean? = null): kotlin.Array<CommandType> {
val localVariableQuery: MultiValueMap = mapOf("deviceId" to listOf("$deviceId"), "protocol" to listOf("$protocol"), "textChannel" to listOf("$textChannel"))
val localVariableConfig = RequestConfig(
RequestMethod.GET,