All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paysera.lib.inrento.clients.InRentoAuthTokenApiClient.kt Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
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