Companion

object Companion

Functions

Link copied to clipboard
fun <E : Any> httpFailure(code: Int, error: E? = null): ApiResult.Failure.HttpFailure<E>
Link copied to clipboard
fun networkFailure(error: IOException): ApiResult.Failure.NetworkFailure
Link copied to clipboard
fun <T> success(data: T): ApiResult.Success<T>
Link copied to clipboard
fun unknownFailure(error: Throwable): ApiResult.Failure.UnknownFailure