com.univapay.sdk.converters.VoidConverterFactory Maven / Gradle / Ivy
package com.univapay.sdk.converters;
import com.univapay.sdk.models.common.Void;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;
public class VoidConverterFactory extends Converter.Factory {
@Override
public Converter responseBodyConverter(
Type type, Annotation[] annotations, Retrofit retrofit) {
if (!type.equals(Void.class)) {
return null;
}
return new Converter() {
@Override
public Object convert(ResponseBody body) throws IOException {
return null;
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy