NetworkApiClient

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun delete(url: String, accessToken: String? = null, headers: List<Pair<String, String>> = emptyList()): NetworkResult
Link copied to clipboard
abstract suspend fun get(url: String, accessToken: String? = null, queryParameters: List<Pair<String, Any?>> = emptyList(), headers: List<Pair<String, String>> = emptyList()): NetworkResult
Link copied to clipboard
abstract fun getLanguage(): String?
Link copied to clipboard
abstract suspend fun multipartFormData(url: String, fileType: String, fileName: String, byteArray: ByteArray, contentType: String, accessToken: String?, formData: Map<String, String>, headers: List<Pair<String, String>> = emptyList()): NetworkResult
Link copied to clipboard
abstract suspend fun patch(url: String, body: String? = null, accessToken: String? = null, headers: List<Pair<String, String>> = emptyList()): NetworkResult
Link copied to clipboard
abstract suspend fun post(url: String, body: String? = null, accessToken: String? = null, headers: List<Pair<String, String>> = emptyList()): NetworkResult
Link copied to clipboard
abstract suspend fun put(url: String, body: String? = null, accessToken: String? = null, headers: List<Pair<String, String>> = emptyList()): NetworkResult
Link copied to clipboard
abstract fun setLanguage(language: String)