aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/SessionApi.kt6
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Session_body.kt6
2 files changed, 5 insertions, 7 deletions
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 417a818..2fba8a8 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
@@ -15,16 +15,16 @@ import com.russhwolf.settings.Settings
import mx.trackermap.TrackerMap.client.models.User
import mx.trackermap.TrackerMap.client.infrastructure.*
-val ACCESS_TOKEN_KEY = "access_token"
+const val ACCESS_TOKEN_KEY = "access_token"
-class SessionApi(basePath: kotlin.String = "https://demo.traccar.org/api") : ApiClient(basePath) {
+class SessionApi(basePath: String = "https://demo.traccar.org/api") : ApiClient(basePath) {
/**
* Close the Session
*
* @return void
*/
- suspend fun sessionDelete(): Unit {
+ suspend fun sessionDelete() {
val localVariableConfig = RequestConfig(
RequestMethod.DELETE,
"/session"
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Session_body.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Session_body.kt
index 7958097..bda2fa4 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Session_body.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Session_body.kt
@@ -11,15 +11,13 @@
*/
package mx.trackermap.TrackerMap.client.models
-
/**
*
* @param email
* @param password
*/
data class SessionBody (
-
- val email: kotlin.String,
- val password: kotlin.String
+ val email: String,
+ val password: String
) {
} \ No newline at end of file