diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-02-13 15:08:42 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-02-13 15:08:42 +0100 |
commit | ea23ddd8dd11e9645b1dd061f373c3a0bade78f0 (patch) | |
tree | 676f0b180b2a0e3407b6c93ef2fa656fa467de45 /kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote | |
parent | 5a32102ccd280a974bfa53bf88b6618d14339cb0 (diff) | |
download | kvision-ea23ddd8dd11e9645b1dd061f373c3a0bade78f0.tar.gz kvision-ea23ddd8dd11e9645b1dd061f373c3a0bade78f0.tar.bz2 kvision-ea23ddd8dd11e9645b1dd061f373c3a0bade78f0.zip |
Minor declaration fixes.
Diffstat (limited to 'kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote')
-rw-r--r-- | kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt index ea3199cf..53e612c6 100644 --- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt +++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt @@ -153,7 +153,7 @@ open class CallAgent { * @param transform a function to transform the result of the call * @return a promise of the result */ - fun <T> remoteCall( + fun <T : Any> remoteCall( url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, @@ -182,7 +182,7 @@ open class CallAgent { * @param beforeSend a content type of the request * @return a promise of the result */ - fun <V> remoteCall( + fun <V : Any> remoteCall( url: String, serializer: SerializationStrategy<V>, data: V, @@ -206,7 +206,7 @@ open class CallAgent { * @param transform a function to transform the result of the call * @return a promise of the result */ - fun <T, V> remoteCall( + fun <T : Any, V : Any> remoteCall( url: String, serializer: SerializationStrategy<V>, data: V, |