From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- .../-k-v-service-manager/index.html | 151 ++++----------------- 1 file changed, 25 insertions(+), 126 deletions(-) (limited to 'api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html') diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html index d5e33961..69623e03 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html @@ -8,19 +8,19 @@ kvision / pl.treksoft.kvision.remote / KVServiceManager

KVServiceManager

-open actual class KVServiceManager<T : Any> +(js) open class KVServiceManager<T : Any>

Multiplatform service manager.

Constructors

+KVServiceManager(serviceClass: KClass<T>)
-

<init>

+(js) +

<init>

-KVServiceManager(serviceClass: KClass<T>)

Multiplatform service manager.

-
@@ -29,81 +29,20 @@ -

calls

+(js) +

calls

-val calls: MutableMap<String, Pair<String, HttpMethod>> +val calls: MutableMap<String, Pair<String, HttpMethod>> -

counter

+(js) +

counter

var counter: Int - - -

deleteRequests

- - -val deleteRequests: MutableMap<String, (<ERROR CLASS>) -> Unit> - - - -

getRequests

- - -val getRequests: MutableMap<String, (<ERROR CLASS>) -> Unit> - - - -

mapper

- - -val mapper: <ERROR CLASS> - - - -

optionsRequests

- - -val optionsRequests: MutableMap<String, (<ERROR CLASS>) -> Unit> - - - -

postRequests

- - -val postRequests: MutableMap<String, (<ERROR CLASS>) -> Unit> - - - -

putRequests

- - -val putRequests: MutableMap<String, (<ERROR CLASS>) -> Unit> - - - -

serviceClass

- - -val serviceClass: KClass<T> - - - -

webSocketRequests

- - -val webSocketRequests: MutableMap<String, (<ERROR CLASS>) -> Unit> - - - -

webSocketsRequests

- - -val webSocketsRequests: MutableMap<String, suspend (<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS><String>, <ERROR CLASS><String>) -> Unit> -

Functions

@@ -111,77 +50,37 @@ -

bind

+(js) +

bind

-actual fun <RET> bind(function: suspend T.() -> RET, method: HttpMethod, route: String?): Unit
-actual fun <PAR, RET> bind(function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?): Unit
-actual fun <PAR1, PAR2, RET> bind(function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?): Unit
-actual fun <PAR1, PAR2, PAR3, RET> bind(function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?): Unit
-actual fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?): Unit
-actual fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?): Unit

Binds a given route with a function of the receiver.

-actual fun <PAR1 : Any, PAR2 : Any> bind(function: suspend T.(<ERROR CLASS><PAR1>, <ERROR CLASS><PAR2>) -> Unit, route: String?): Unit -

Binds a given web socket connetion with a function of the receiver.

- +fun <RET> bind(function: suspend T.() -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit
+fun <PAR, RET> bind(function: suspend T.(PAR) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit
+fun <PAR1, PAR2, RET> bind(function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit
+fun <PAR1, PAR2, PAR3, RET> bind(function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit
+fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit
+fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit +

Binds a given function of the receiver as a web socket connection

+fun <PAR1 : Any, PAR2 : Any> bind(function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit, route: String? = null): Unit -

bindTabulatorRemote

+(js) +

bindTabulatorRemote

-actual fun <RET> bindTabulatorRemote(function: suspend T.(Int?, Int?, List<<ERROR CLASS>>?, List<<ERROR CLASS>>?, String?) -> <ERROR CLASS><RET>): Unit

Binds a given function of the receiver as a tabulator component source

- +fun <RET> bindTabulatorRemote(function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>): Unit -

getCalls

+(js) +

getCalls

-fun getCalls(): Map<String, Pair<String, HttpMethod>>

Returns the map of defined paths.

- - - - -

Companion Object Properties

- - - - - - - - - - - - - - - -
-

KV_WS_INCOMING_KEY

-
-const val KV_WS_INCOMING_KEY: String
-

KV_WS_OUTGOING_KEY

-
-const val KV_WS_OUTGOING_KEY: String
-

LOG

-
-val LOG: <ERROR CLASS>
-

Extension Functions

- - - - - +open fun getCalls(): Map<String, Pair<String, HttpMethod>>
-

createInstance

-
-fun <T> Any?.createInstance(vararg args: dynamic): T -

Helper function for creating JavaScript objects from dynamic constructors.

-
-- cgit