diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-14 22:35:23 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-14 22:35:23 -0600 |
commit | a22a13de9b4d1e46bb64371242fa3528bfac7675 (patch) | |
tree | c51c043f9c05e0cf5b80d8d6f3a09d9bdbd0a87c /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client | |
parent | 7c3e13114fd189c49e86b8d6c200ffb3c27bb498 (diff) | |
download | etbsa-trackermap-mobile-a22a13de9b4d1e46bb64371242fa3528bfac7675.tar.gz etbsa-trackermap-mobile-a22a13de9b4d1e46bb64371242fa3528bfac7675.tar.bz2 etbsa-trackermap-mobile-a22a13de9b4d1e46bb64371242fa3528bfac7675.zip |
Deleted unused controllers and refactored session management code into SessionController
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/SessionApi.kt | 6 | ||||
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Session_body.kt | 6 |
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 |