aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-common-remote
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-common-remote')
-rw-r--r--kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt2
-rw-r--r--kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/RemoteTypes.kt3
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