Skip to content

Instantly share code, notes, and snippets.

@mpierucci
mpierucci / EitherCall
Created Jul 16, 2021
Simple EitherCall example for retrofit
View EitherCall
internal class EitherCall<R>(
private val delegate: Call<R>,
private val successType: Type
) : Call<Either<Failure, R>> {
override fun clone(): Call<Either<Failure, R>> {
TODO("Not yet implemented")
}
override fun execute(): Response<Either<Failure, R>> {