| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
Converter<?,okhttp3.RequestBody> |
requestBodyConverter(Type type,
Annotation[] parameterAnnotations,
Annotation[] methodAnnotations,
Retrofit retrofit)
Returns a
Converter for converting type to an HTTP request body, or null if
type cannot be handled by this factory. |
Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(Type type,
Annotation[] annotations,
Retrofit retrofit)
Returns a
Converter for converting an HTTP response body to type, or null if
type cannot be handled by this factory. |
Converter<?,String> |
stringConverter(Type type,
Annotation[] annotations,
Retrofit retrofit)
|
public Converter<okhttp3.ResponseBody,?> responseBodyConverter(Type type, Annotation[] annotations, Retrofit retrofit)
Converter for converting an HTTP response body to type, or null if
type cannot be handled by this factory. This is used to create converters for
response types such as SimpleResponse from a Call<SimpleResponse>
declaration.public Converter<?,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, Retrofit retrofit)
public Converter<?,String> stringConverter(Type type, Annotation[] annotations, Retrofit retrofit)
Copyright © 2017 Square, Inc.. All rights reserved.