com.paysera.lib.inrento.clients.InRentoAuthTokenApiClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-lib-inrento-sdk Show documentation
Show all versions of kotlin-lib-inrento-sdk Show documentation
Paysera: Kotlin InRento SDK Library
package com.paysera.lib.inrento.clients
import com.paysera.lib.common.retrofit.ApiRequestManager
import com.paysera.lib.common.retrofit.BaseApiClient
import com.paysera.lib.inrento.entities.auth.PSAuthToken
import com.paysera.lib.inrento.entities.requests.PSAuthTokenRefreshRequest
import com.paysera.lib.inrento.retrofit.NetworkAuthTokenApiClient
import kotlinx.coroutines.Deferred
class InRentoAuthTokenApiClient(
private val networkAccessApiClient: NetworkAuthTokenApiClient,
apiRequestManager: ApiRequestManager
) : BaseApiClient(apiRequestManager) {
fun refreshToken(authTokenRefreshRequest: PSAuthTokenRefreshRequest): Deferred {
return networkAccessApiClient.refreshToken(authTokenRefreshRequest)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy