Skip to content

Instantly share code, notes, and snippets.

@mpierucci
mpierucci / EitherCall
Created July 16, 2021 13:01
Simple EitherCall example for retrofit
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>> {