diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-07-13 00:21:33 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-07-13 00:59:50 +0200 |
commit | a804e0aa277efc1b46c1111b0ad8302d267684b2 (patch) | |
tree | dbd5329f003b386b5196b510526c9cee75db3514 /kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft | |
parent | 7fe158d0f2243c460c4f1848bb7989c559362cdf (diff) | |
download | kvision-a804e0aa277efc1b46c1111b0ad8302d267684b2.tar.gz kvision-a804e0aa277efc1b46c1111b0ad8302d267684b2.tar.bz2 kvision-a804e0aa277efc1b46c1111b0ad8302d267684b2.zip |
Refactor RemoteSelect -> SelectRemote and RemoteTabulator -> TabulatorRemote
Diffstat (limited to 'kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft')
2 files changed, 3 insertions, 2 deletions
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<T : Any>(serviceClass: KClass<T>) { * @param function a function of the receiver */ protected fun bind( - function: T.(String?, String?) -> List<RemoteSelectOption> + function: T.(String?, String?) -> List<RemoteOption> ) /** 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<T>(val data: List<T> = listOf(), val last_page: Int = 0) @Serializable |