SdkConverterFactory

A Converter.Factory that facilitates conversion between OkHttp okhttp3.Response and JSONifiable objects. To register with retrofit2.Retrofit:

Retrofit retrofit = new Retrofit.Builder()
 ...
 .addConverterFactory(new SdkConverterFactory())
 .build();

Constructors

Link copied to clipboard
public void SdkConverterFactory()

Functions

Link copied to clipboard
public Converter<? extends Object, RequestBody> requestBodyConverter(@NonNull() Type type, @NonNull() Array<Annotation> parameterAnnotations, @NonNull() Array<Annotation> methodAnnotations, @NonNull() Retrofit retrofit)
Link copied to clipboard
public Converter<ResponseBody, ? extends Object> responseBodyConverter(@NonNull() Type type, @NonNull() Array<Annotation> annotations, @NonNull() Retrofit retrofit)
Link copied to clipboard
public Converter<? extends Object, String> stringConverter(Type type, Array<Annotation> annotations, Retrofit retrofit)