From a804e0aa277efc1b46c1111b0ad8302d267684b2 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 13 Jul 2019 00:21:33 +0200 Subject: Refactor RemoteSelect -> SelectRemote and RemoteTabulator -> TabulatorRemote --- .../src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt | 2 +- .../src/main/kotlin/pl/treksoft/kvision/remote/RemoteTypes.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote') diff --git a/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt index 786143e8..006aba89 100644 --- a/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt +++ b/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt @@ -115,7 +115,7 @@ expect open class KVServiceManager(serviceClass: KClass) { * @param function a function of the receiver */ protected fun bind( - function: T.(String?, String?) -> List + function: T.(String?, String?) -> List ) /** diff --git a/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/RemoteTypes.kt b/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/RemoteTypes.kt index 7285295b..29cb6a9b 100644 --- a/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/RemoteTypes.kt +++ b/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/RemoteTypes.kt @@ -24,7 +24,7 @@ package pl.treksoft.kvision.remote import kotlinx.serialization.Serializable @Serializable -data class RemoteSelectOption( +data class RemoteOption( val value: String? = null, val text: String? = null, val className: String? = null, @@ -36,6 +36,7 @@ data class RemoteSelectOption( ) @Serializable +@Suppress("ConstructorParameterNaming") data class RemoteData(val data: List = listOf(), val last_page: Int = 0) @Serializable -- cgit