All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.gopay.sdk.converters.VoidConverterFactory Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.converters;

import jp.gopay.sdk.models.common.Void;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;

import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

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 - 2024 Weber Informatics LLC | Privacy Policy