class FetchResponse<FETCH_RESPONSE>
When a OnlineRepository.fetchFreshCache task is performed, Teller needs to know if the fetch request is considered to be a success or a failure.
val failure: Throwable? |
|
val response: FETCH_RESPONSE? |
fun isFailure(): Boolean |
|
fun isSuccessful(): Boolean |
fun <FETCH_RESPONSE> fail(throwable: Throwable): FetchResponse<FETCH_RESPONSE> |
|
fun <FETCH_RESPONSE> success(response: FETCH_RESPONSE): FetchResponse<FETCH_RESPONSE> |