From a22a13de9b4d1e46bb64371242fa3528bfac7675 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 14 Jan 2022 22:35:23 -0600 Subject: Deleted unused controllers and refactored session management code into SessionController --- .../kotlin/mx/trackermap/TrackerMap/client/apis/SessionApi.kt | 6 +++--- .../kotlin/mx/trackermap/TrackerMap/client/models/Session_body.kt | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client') 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 -- cgit v1.2.3