KtorClient

class KtorClient(initialBaseUrl: String?, initialAccessToken: String?, initialClientInfo: ClientInfo, initialDeviceInfo: DeviceInfo, val httpClientOptions: HttpClientOptions, socketConnectionFactory: SocketConnectionFactory) : ApiClient

Constructors

Link copied to clipboard
constructor(initialBaseUrl: String?, initialAccessToken: String?, initialClientInfo: ClientInfo, initialDeviceInfo: DeviceInfo, httpClientOptions: HttpClientOptions, socketConnectionFactory: SocketConnectionFactory)

Properties

Link copied to clipboard
open override var accessToken: String?
Link copied to clipboard
open override var baseUrl: String?
Link copied to clipboard
open override var clientInfo: ClientInfo
Link copied to clipboard
open override var deviceInfo: DeviceInfo
Link copied to clipboard
Link copied to clipboard
open override val webSocket: SocketApi

Functions

Link copied to clipboard
open fun createUrl(pathTemplate: String, pathParameters: Map<String, Any?>, queryParameters: Map<String, Any?>, ignorePathParameters: Boolean): String
Link copied to clipboard
inline fun <T : Api> getOrCreateApi(noinline create: (apiClient: ApiClient) -> T): T
fun <T : Api> getOrCreateApi(kclass: KClass<T>, create: (apiClient: ApiClient) -> T): T
Link copied to clipboard
open suspend override fun request(method: HttpMethod, pathTemplate: String, pathParameters: Map<String, Any?>, queryParameters: Map<String, Any?>, requestBody: Any?): RawResponse
Link copied to clipboard
open override fun update(baseUrl: String?, accessToken: String?, clientInfo: ClientInfo, deviceInfo: DeviceInfo)