diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-02-01 11:54:25 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-02-01 11:54:25 +0100 |
commit | 110ba60c6557bf16a3bfc5f7ff5af46a98164c75 (patch) | |
tree | ea8a59ae9d7c2de94f36a4d75d00695bb75552e8 /kvision-modules/kvision-remote | |
parent | cf0a609fc42b2356f50f32e03f02e2ace0d46e35 (diff) | |
download | kvision-110ba60c6557bf16a3bfc5f7ff5af46a98164c75.tar.gz kvision-110ba60c6557bf16a3bfc5f7ff5af46a98164c75.tar.bz2 kvision-110ba60c6557bf16a3bfc5f7ff5af46a98164c75.zip |
Refactor server-side interfaces.
Diffstat (limited to 'kvision-modules/kvision-remote')
-rw-r--r-- | kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt | 10 | ||||
-rw-r--r-- | kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt (renamed from kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt) | 6 |
2 files changed, 2 insertions, 14 deletions
diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt index 383e8bb2..c13c4c18 100644 --- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt +++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt @@ -26,7 +26,7 @@ import kotlin.reflect.KClass /** * Multiplatform service manager. */ -actual open class KVServiceManager<T : Any> actual constructor(serviceClass: KClass<T>) : ServiceManager { +actual open class KVServiceManager<T : Any> actual constructor(serviceClass: KClass<T>) { protected val calls: MutableMap<String, Pair<String, RpcHttpMethod>> = mutableMapOf() var counter: Int = 0 @@ -131,12 +131,6 @@ actual open class KVServiceManager<T : Any> actual constructor(serviceClass: KCl /** * Returns the map of defined paths. */ - override fun getCalls(): Map<String, Pair<String, RpcHttpMethod>> = calls + fun getCalls(): Map<String, Pair<String, RpcHttpMethod>> = calls - /** - * Applies all defined routes to the given server. - * Not used on the js platform. - */ - actual fun applyRoutes(k: KVServer) { - } } diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt index 7b74ab00..d5745afe 100644 --- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt +++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt @@ -25,12 +25,6 @@ import kotlinx.serialization.Serializable import kotlinx.serialization.Transient /** - * A server. - * Not used on the js platform. - */ -actual open class KVServer - -/** * A user profile. */ @Serializable |