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

top.javatool.payment.converter.FastJsonConverterFactory Maven / Gradle / Ivy

package top.javatool.payment.converter;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;

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

/**
 *
 * Created by apple on 2017/4/9.
 */
public class FastJsonConverterFactory extends Converter.Factory {


    public static FastJsonConverterFactory create() {
        return new FastJsonConverterFactory();
    }



    @Override
    public Converter responseBodyConverter(Type type, Annotation[] annotations, Retrofit retrofit) {
        return new FastJsonResponseBodyConverter<>(type);
    }

    @Override
    public Converter requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, Retrofit retrofit) {
        return new FastJsonRequestBodyConverter<>();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy