public class GlobalConverterFactory
extends retrofit2.Converter.Factory
| Modifier and Type | Method and Description |
|---|---|
GlobalConverterFactory |
add(retrofit2.Converter.Factory factory,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Add a converter factory associated with the clazz Annotation, the first added one will be as the default factory.
|
static GlobalConverterFactory |
create() |
retrofit2.Converter<?,okhttp3.RequestBody> |
requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit) |
retrofit2.Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit) |
public static GlobalConverterFactory create()
public GlobalConverterFactory add(retrofit2.Converter.Factory factory, java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
factory - factory of converterclazz - the annotion classpublic retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit)
responseBodyConverter in class retrofit2.Converter.Factorypublic retrofit2.Converter<?,okhttp3.RequestBody> requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit)
requestBodyConverter in class retrofit2.Converter.Factory