abstract class NativeService<ResponseType : ServiceResponse!, QueryType : NativeObject!> : Service<ResponseType, QueryType>
Base class for native REST services.
NativeService(server: String!, apiVersion: String!, apiKey: String!, sdkVersion: String!, applicationClientId: String!, applicationClientVersion: String!)
Creates an an instance of NativeService using provided parameters. |
val apiKey: String! |
|
val apiVersion: String! |
|
val applicationClientId: String! |
|
val applicationClientVersion: String! |
|
val sdkVersion: String! |
|
val server: String! |
open fun cancel(): Unit abstract fun cancel(handle: Long): Unit
Cancels a REST request in progress. |
|
abstract fun construct(server: String!, apiVersion: String!, apiKey: String!): Long
Creates an instance of the native REST service handler. |
|
abstract fun destruct(handle: Long): Unit
Destroys the native object. |
|
abstract fun initializeAnalytics(nativeHandle: Long, sdkVersion: String!, applicationClientId: String!, applicationClientVersion: String!): Unit
Initializes STE analytics. |
|
open fun query(query: QueryType): Single<ResponseType>! |
|
abstract fun <ResponseType : Any!> requestSync(handle: Long, queryHandle: Long): ResponseType
Makes a REST service request. |
|
open fun tryQuery(query: QueryType): Try<ResponseType>! |