public class Retrofit2ConverterFactory
extends retrofit2.Converter.Factory
Compatible fastjson 1.2.x
Converter.Factory| Constructor and Description |
|---|
Retrofit2ConverterFactory() |
Retrofit2ConverterFactory(FastJsonConfig fastJsonConfig) |
| Modifier and Type | Method and Description |
|---|---|
static Retrofit2ConverterFactory |
create() |
static Retrofit2ConverterFactory |
create(FastJsonConfig fastJsonConfig) |
FastJsonConfig |
getFastJsonConfig() |
retrofit2.Converter<Object,okhttp3.RequestBody> |
requestBodyConverter(Type type,
Annotation[] parameterAnnotations,
Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit) |
retrofit2.Converter<okhttp3.ResponseBody,Object> |
responseBodyConverter(Type type,
Annotation[] annotations,
retrofit2.Retrofit retrofit) |
Retrofit2ConverterFactory |
setFastJsonConfig(FastJsonConfig fastJsonConfig) |
public Retrofit2ConverterFactory()
public Retrofit2ConverterFactory(FastJsonConfig fastJsonConfig)
public static Retrofit2ConverterFactory create()
public static Retrofit2ConverterFactory create(FastJsonConfig fastJsonConfig)
public retrofit2.Converter<okhttp3.ResponseBody,Object> responseBodyConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit)
responseBodyConverter in class retrofit2.Converter.Factorypublic retrofit2.Converter<Object,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, retrofit2.Retrofit retrofit)
requestBodyConverter in class retrofit2.Converter.Factorypublic FastJsonConfig getFastJsonConfig()
public Retrofit2ConverterFactory setFastJsonConfig(FastJsonConfig fastJsonConfig)
Copyright © 2022 Alibaba Group. All rights reserved.