diff options
Diffstat (limited to 'shared/src/commonMain/kotlin/mx')
19 files changed, 61 insertions, 69 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/AttributesApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/AttributesApi.kt index a1d31b0..388df19 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/AttributesApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/AttributesApi.kt @@ -28,7 +28,7 @@ class AttributesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return kotlin.Array<Attribute> */ @Suppress("UNCHECKED_CAST") - fun attributesComputedGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array<Attribute> { + suspend fun attributesComputedGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, deviceId: kotlin.Int? = null, groupId: kotlin.Int? = null, refresh: kotlin.Boolean? = null): kotlin.Array<Attribute> { 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 AttributesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @param id * @return void */ - fun attributesComputedIdDelete(id: kotlin.Int): Unit { + suspend fun attributesComputedIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -78,7 +78,7 @@ class AttributesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return Attribute */ @Suppress("UNCHECKED_CAST") - fun attributesComputedIdPut(body: Attribute, id: kotlin.Int): Attribute { + suspend fun attributesComputedIdPut(body: Attribute, id: kotlin.Int): Attribute { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -104,7 +104,7 @@ class AttributesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return Attribute */ @Suppress("UNCHECKED_CAST") - fun attributesComputedPost(body: Attribute): Attribute { + suspend fun attributesComputedPost(body: Attribute): Attribute { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CalendarsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CalendarsApi.kt index 06538b3..70e3a02 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CalendarsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/CalendarsApi.kt @@ -25,7 +25,7 @@ class CalendarsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @return kotlin.Array<Calendar> */ @Suppress("UNCHECKED_CAST") - fun calendarsGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null): kotlin.Array<Calendar> { + suspend fun calendarsGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null): kotlin.Array<Calendar> { val localVariableQuery: MultiValueMap = mapOf("all" to listOf("$all"), "userId" to listOf("$userId")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -49,7 +49,7 @@ class CalendarsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @param id * @return void */ - fun calendarsIdDelete(id: kotlin.Int): Unit { + suspend fun calendarsIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -75,7 +75,7 @@ class CalendarsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @return Calendar */ @Suppress("UNCHECKED_CAST") - fun calendarsIdPut(body: Calendar, id: kotlin.Int): Calendar { + suspend fun calendarsIdPut(body: Calendar, id: kotlin.Int): Calendar { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -101,7 +101,7 @@ class CalendarsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @return Calendar */ @Suppress("UNCHECKED_CAST") - fun calendarsPost(body: Calendar): Calendar { + suspend fun calendarsPost(body: Calendar): Calendar { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( 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, diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt index 1582575..bc87f78 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt @@ -28,7 +28,7 @@ class DevicesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return kotlin.Array<Device> */ @Suppress("UNCHECKED_CAST") - fun devicesGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, id: kotlin.Int? = null, uniqueId: kotlin.String? = null): kotlin.Array<Device> { + suspend fun devicesGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null, id: kotlin.Int? = null, uniqueId: kotlin.String? = null): kotlin.Array<Device> { val localVariableQuery: MultiValueMap = mapOf("all" to listOf("$all"), "userId" to listOf("$userId"), "id" to listOf("$id"), "uniqueId" to listOf("$uniqueId")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -53,7 +53,7 @@ class DevicesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @param id * @return void */ - fun devicesIdAccumulatorsPut(body: DeviceAccumulators, id: kotlin.Int): Unit { + suspend fun devicesIdAccumulatorsPut(body: DeviceAccumulators, id: kotlin.Int): Unit { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -78,7 +78,7 @@ class DevicesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @param id * @return void */ - fun devicesIdDelete(id: kotlin.Int): Unit { + suspend fun devicesIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -104,7 +104,7 @@ class DevicesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return Device */ @Suppress("UNCHECKED_CAST") - fun devicesIdPut(body: Device, id: kotlin.Int): Device { + suspend fun devicesIdPut(body: Device, id: kotlin.Int): Device { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -130,7 +130,7 @@ class DevicesApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return Device */ @Suppress("UNCHECKED_CAST") - fun devicesPost(body: Device): Device { + suspend fun devicesPost(body: Device): Device { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( 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<Driver> */ @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<Driver> { + 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<Driver> { 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( diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/EventsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/EventsApi.kt index 14d7c89..8c1f2b0 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/EventsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/EventsApi.kt @@ -24,7 +24,7 @@ class EventsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiC * @return Event */ @Suppress("UNCHECKED_CAST") - fun eventsIdGet(id: kotlin.Int): Event { + suspend fun eventsIdGet(id: kotlin.Int): Event { val localVariableConfig = RequestConfig( RequestMethod.GET, 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( diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GroupsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GroupsApi.kt index b670fa2..c86e66c 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GroupsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/GroupsApi.kt @@ -25,7 +25,7 @@ class GroupsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiC * @return kotlin.Array<Group> */ @Suppress("UNCHECKED_CAST") - fun groupsGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null): kotlin.Array<Group> { + suspend fun groupsGet(all: kotlin.Boolean? = null, userId: kotlin.Int? = null): kotlin.Array<Group> { val localVariableQuery: MultiValueMap = mapOf("all" to listOf("$all"), "userId" to listOf("$userId")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -49,7 +49,7 @@ class GroupsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiC * @param id * @return void */ - fun groupsIdDelete(id: kotlin.Int): Unit { + suspend fun groupsIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -75,7 +75,7 @@ class GroupsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiC * @return Group */ @Suppress("UNCHECKED_CAST") - fun groupsIdPut(body: Group, id: kotlin.Int): Group { + suspend fun groupsIdPut(body: Group, id: kotlin.Int): Group { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -101,7 +101,7 @@ class GroupsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiC * @return Group */ @Suppress("UNCHECKED_CAST") - fun groupsPost(body: Group): Group { + suspend fun groupsPost(body: Group): Group { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( 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( 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<Notification> */ @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<Notification> { + 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<Notification> { 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<NotificationType> */ @Suppress("UNCHECKED_CAST") - fun notificationsTypesGet(): kotlin.Array<NotificationType> { + suspend fun notificationsTypesGet(): kotlin.Array<NotificationType> { val localVariableConfig = RequestConfig( RequestMethod.GET, diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PermissionsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PermissionsApi.kt index 29c18b4..bfa2c2e 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PermissionsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PermissionsApi.kt @@ -23,7 +23,7 @@ class PermissionsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @param body * @return void */ - fun permissionsDelete(body: Permission): Unit { + suspend fun permissionsDelete(body: Permission): Unit { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -49,7 +49,7 @@ class PermissionsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return Permission */ @Suppress("UNCHECKED_CAST") - fun permissionsPost(body: Permission): Permission { + suspend fun permissionsPost(body: Permission): Permission { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PositionsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PositionsApi.kt index ed2c558..8c1b73e 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PositionsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/PositionsApi.kt @@ -27,7 +27,7 @@ class PositionsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : A * @return kotlin.Array<Position> */ @Suppress("UNCHECKED_CAST") - fun positionsGet(deviceId: kotlin.Int? = null, from: java.time.LocalDateTime? = null, to: java.time.LocalDateTime? = null, id: kotlin.Int? = null): kotlin.Array<Position> { + suspend fun positionsGet(deviceId: kotlin.Int? = null, from: java.time.LocalDateTime? = null, to: java.time.LocalDateTime? = null, id: kotlin.Int? = null): kotlin.Array<Position> { val localVariableQuery: MultiValueMap = mapOf("deviceId" to listOf("$deviceId"), "from" to listOf("$from"), "to" to listOf("$to"), "id" to listOf("$id")) val localVariableConfig = RequestConfig( RequestMethod.GET, diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt index e0a04d8..0caa945 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt @@ -32,7 +32,7 @@ class ReportsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return kotlin.Array<Event> */ @Suppress("UNCHECKED_CAST") - fun reportsEventsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null, type: kotlin.Array<kotlin.String>? = null): kotlin.Array<Event> { + suspend fun reportsEventsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null, type: kotlin.Array<kotlin.String>? = null): kotlin.Array<Event> { val localVariableQuery: MultiValueMap = mapOf("deviceId" to toMultiValue(deviceId!!.toList(), "multi"), "groupId" to toMultiValue(groupId!!.toList(), "multi"), "type" to toMultiValue(type!!.toList(), "csv"), "from" to listOf("$from"), "to" to listOf("$to")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -60,7 +60,7 @@ class ReportsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return kotlin.Array<Position> */ @Suppress("UNCHECKED_CAST") - fun reportsRouteGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<Position> { + suspend fun reportsRouteGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<Position> { val localVariableQuery: MultiValueMap = mapOf("deviceId" to toMultiValue(deviceId!!.toList(), "multi"), "groupId" to toMultiValue(groupId!!.toList(), "multi"), "from" to listOf("$from"), "to" to listOf("$to")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -88,7 +88,7 @@ class ReportsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return kotlin.Array<ReportStops> */ @Suppress("UNCHECKED_CAST") - fun reportsStopsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<ReportStops> { + suspend fun reportsStopsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<ReportStops> { val localVariableQuery: MultiValueMap = mapOf("deviceId" to toMultiValue(deviceId!!.toList(), "multi"), "groupId" to toMultiValue(groupId!!.toList(), "multi"), "from" to listOf("$from"), "to" to listOf("$to")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -116,7 +116,7 @@ class ReportsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return kotlin.Array<ReportSummary> */ @Suppress("UNCHECKED_CAST") - fun reportsSummaryGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<ReportSummary> { + suspend fun reportsSummaryGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<ReportSummary> { val localVariableQuery: MultiValueMap = mapOf("deviceId" to toMultiValue(deviceId!!.toList(), "multi"), "groupId" to toMultiValue(groupId!!.toList(), "multi"), "from" to listOf("$from"), "to" to listOf("$to")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -144,7 +144,7 @@ class ReportsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return kotlin.Array<ReportTrips> */ @Suppress("UNCHECKED_CAST") - fun reportsTripsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<ReportTrips> { + suspend fun reportsTripsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime, deviceId: kotlin.Array<kotlin.Int>? = null, groupId: kotlin.Array<kotlin.Int>? = null): kotlin.Array<ReportTrips> { val localVariableQuery: MultiValueMap = mapOf("deviceId" to toMultiValue(deviceId!!.toList(), "multi"), "groupId" to toMultiValue(groupId!!.toList(), "multi"), "from" to listOf("$from"), "to" to listOf("$to")) val localVariableConfig = RequestConfig( RequestMethod.GET, diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ServerApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ServerApi.kt index 3bd83f1..659761b 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ServerApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ServerApi.kt @@ -23,7 +23,7 @@ class ServerApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiC * @return Server */ @Suppress("UNCHECKED_CAST") - fun serverGet(): Server { + suspend fun serverGet(): Server { val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -48,7 +48,7 @@ class ServerApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiC * @return Server */ @Suppress("UNCHECKED_CAST") - fun serverPut(body: Server): Server { + suspend fun serverPut(body: Server): Server { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/SessionApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/SessionApi.kt index 0cdc5e8..d740a58 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/SessionApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/SessionApi.kt @@ -22,7 +22,7 @@ class SessionApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * * @return void */ - fun sessionDelete(): Unit { + suspend fun sessionDelete(): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -47,7 +47,7 @@ class SessionApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return User */ @Suppress("UNCHECKED_CAST") - fun sessionGet(token: kotlin.String? = null): User { + suspend fun sessionGet(token: kotlin.String? = null): User { val localVariableQuery: MultiValueMap = mapOf("token" to listOf("$token")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -73,7 +73,7 @@ class SessionApi(basePath: kotlin.String = "https://demo.traccar.org/api") : Api * @return User */ @Suppress("UNCHECKED_CAST") - fun sessionPost(email: kotlin.String, password: kotlin.String): User { + suspend fun sessionPost(email: kotlin.String, password: kotlin.String): User { val localVariableBody: kotlin.Any? = mapOf("email" to "$email", "password" to "$password") val localVariableHeaders: kotlin.collections.Map<kotlin.String, kotlin.String> = mapOf("Content-Type" to "multipart/form-data") diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt index eb9dec4..f7651ac 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/StatisticsApi.kt @@ -25,7 +25,7 @@ class StatisticsApi(basePath: kotlin.String = "https://demo.traccar.org/api") : * @return kotlin.Array<Statistics> */ @Suppress("UNCHECKED_CAST") - fun statisticsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime): kotlin.Array<Statistics> { + suspend fun statisticsGet(from: java.time.LocalDateTime, to: java.time.LocalDateTime): kotlin.Array<Statistics> { val localVariableQuery: MultiValueMap = mapOf("from" to listOf("$from"), "to" to listOf("$to")) val localVariableConfig = RequestConfig( RequestMethod.GET, diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/UsersApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/UsersApi.kt index 8a426a8..015b329 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/UsersApi.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/UsersApi.kt @@ -24,7 +24,7 @@ class UsersApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiCl * @return kotlin.Array<User> */ @Suppress("UNCHECKED_CAST") - fun usersGet(userId: kotlin.String? = null): kotlin.Array<User> { + suspend fun usersGet(userId: kotlin.String? = null): kotlin.Array<User> { val localVariableQuery: MultiValueMap = mapOf("userId" to listOf("$userId")) val localVariableConfig = RequestConfig( RequestMethod.GET, @@ -48,7 +48,7 @@ class UsersApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiCl * @param id * @return void */ - fun usersIdDelete(id: kotlin.Int): Unit { + suspend fun usersIdDelete(id: kotlin.Int): Unit { val localVariableConfig = RequestConfig( RequestMethod.DELETE, @@ -74,7 +74,7 @@ class UsersApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiCl * @return User */ @Suppress("UNCHECKED_CAST") - fun usersIdPut(body: User, id: kotlin.Int): User { + suspend fun usersIdPut(body: User, id: kotlin.Int): User { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( @@ -100,7 +100,7 @@ class UsersApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiCl * @return User */ @Suppress("UNCHECKED_CAST") - fun usersPost(body: User): User { + suspend fun usersPost(body: User): User { val localVariableBody: kotlin.Any? = body val localVariableConfig = RequestConfig( diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateAdapter.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateAdapter.kt index 3aa236a..6b73b60 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateAdapter.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateAdapter.kt @@ -1,17 +1,13 @@ package mx.trackermap.TrackerMap.client.infrastructure -import com.squareup.moshi.FromJson -import com.squareup.moshi.ToJson import java.time.LocalDate import java.time.format.DateTimeFormatter class LocalDateAdapter { - @ToJson fun toJson(value: LocalDate): String { return DateTimeFormatter.ISO_LOCAL_DATE.format(value) } - @FromJson fun fromJson(value: String): LocalDate { return LocalDate.parse(value, DateTimeFormatter.ISO_LOCAL_DATE_TIME) } diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateTimeAdapter.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateTimeAdapter.kt index 3fbb237..1534448 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateTimeAdapter.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateTimeAdapter.kt @@ -1,17 +1,13 @@ package mx.trackermap.TrackerMap.client.infrastructure -import com.squareup.moshi.FromJson -import com.squareup.moshi.ToJson import java.time.LocalDateTime import java.time.format.DateTimeFormatter class LocalDateTimeAdapter { - @ToJson fun toJson(value: LocalDateTime): String { return DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(value) } - @FromJson fun fromJson(value: String): LocalDateTime { return LocalDateTime.parse(value, DateTimeFormatter.ISO_LOCAL_DATE_TIME) } |