From 8883419bfcec00947863741d48dbd89cc877615a Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 4 Apr 2019 13:10:28 +0200 Subject: API documentation for KVision 0.0.32 --- .../-call-agent/call.html | 104 --------------------- .../-call-agent/index.html | 21 +---- .../-call-agent/remote-call.html | 60 ------------ 3 files changed, 1 insertion(+), 184 deletions(-) delete mode 100644 api/pl.treksoft.kvision.remote/-call-agent/call.html (limited to 'api/pl.treksoft.kvision.remote/-call-agent') diff --git a/api/pl.treksoft.kvision.remote/-call-agent/call.html b/api/pl.treksoft.kvision.remote/-call-agent/call.html deleted file mode 100644 index 5d908ee6..00000000 --- a/api/pl.treksoft.kvision.remote/-call-agent/call.html +++ /dev/null @@ -1,104 +0,0 @@ - - - -CallAgent.call - kvision - - - -kvision / pl.treksoft.kvision.remote / CallAgent / call
-
-

call

- -inline fun <reified T : Any> call(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically get deserializer for the result value with dynamic data.

-

Parameters

-

-url - an URL address

-

-data - data to be sent

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

-transform - a function to transform the result of the call

-

Return
-a promise of the result

- -inline fun <reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic> -

Helper inline function to automatically get serializer for the data.

-

Parameters

-

-url - an URL address

-

-data - data to be sent

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

Return
-a promise of the result

- -inline fun <T : Any, reified V : Any> call(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically get serializer for the data.

-

Parameters

-

-url - an URL address

-

-data - data to be sent

-

-deserializer - a deserializer for the result value

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

-transform - a function to transform the result of the call

-

Return
-a promise of the result

- -inline fun <reified T : Any, V : Any> call(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically deserializer for the result value with typed data.

-

Parameters

-

-url - an URL address

-

-serializer - for the data

-

-data - data to be sent

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

-transform - a function to transform the result of the call

-

Return
-a promise of the result

- -inline fun <reified T : Any, reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically get serializer for the data and deserializer for the result value.

-

Parameters

-

-url - an URL address

-

-data - data to be sent

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

-transform - a function to transform the result of the call

-

Return
-a promise of the result

- - diff --git a/api/pl.treksoft.kvision.remote/-call-agent/index.html b/api/pl.treksoft.kvision.remote/-call-agent/index.html index 310646be..5c00f239 100644 --- a/api/pl.treksoft.kvision.remote/-call-agent/index.html +++ b/api/pl.treksoft.kvision.remote/-call-agent/index.html @@ -29,22 +29,6 @@ -

call

- - -fun <T : Any> call(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically get deserializer for the result value with dynamic data.

-fun <V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
-fun <T : Any, V : Any> call(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically get serializer for the data.

-fun <T : Any, V : Any> call(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically deserializer for the result value with typed data.

-fun <T : Any, V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> -

Helper inline function to automatically get serializer for the data and deserializer for the result value.

- - - -

jsonRpcCall

@@ -57,10 +41,7 @@

remoteCall

-fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
-fun <T : Any> remoteCall(url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
-fun <V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
-fun <T : Any, V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> +fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>

Makes a remote call to the remote server.

diff --git a/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html b/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html index 939fcb8a..80b27021 100644 --- a/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html +++ b/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html @@ -24,65 +24,5 @@ beforeSend - a content type of the request

Return
a promise of the result

- -fun <T : Any> remoteCall(url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> -

Makes a remote call to the remote server.

-

Parameters

-

-url - an URL address

-

-data - data to be sent

-

-deserializer - a deserializer for the result value

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

-transform - a function to transform the result of the call

-

Return
-a promise of the result

- -fun <V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic> -

Makes a remote call to the remote server.

-

Parameters

-

-url - an URL address

-

-serializer - for the data

-

-data - data to be sent

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

Return
-a promise of the result

- -fun <T : Any, V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> -

Makes a remote call to the remote server.

-

Parameters

-

-url - an URL address

-

-serializer - for the data

-

-data - data to be sent

-

-deserializer - a deserializer for the result value

-

-method - a HTTP method

-

-contentType - a content type of the request

-

-beforeSend - a content type of the request

-

-transform - a function to transform the result of the call

-

Return
-a promise of the result

-- cgit