Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
Converter<com.squareup.okhttp.ResponseBody,?> |
fromResponseBody(Type type,
Annotation[] annotations)
Create a
Converter for converting an HTTP response body to type or null if it
cannot be handled by this factory. |
Converter<?,com.squareup.okhttp.RequestBody> |
toRequestBody(Type type,
Annotation[] annotations)
Create a
Converter for converting type to an HTTP request body or null if it
cannot be handled by this factory. |
public Converter<com.squareup.okhttp.ResponseBody,?> fromResponseBody(Type type, Annotation[] annotations)
Converter
for converting an HTTP response body to type
or null if it
cannot be handled by this factory.public Converter<?,com.squareup.okhttp.RequestBody> toRequestBody(Type type, Annotation[] annotations)
Converter
for converting type
to an HTTP request body or null if it
cannot be handled by this factory.Copyright © 2015 Square, Inc.. All Rights Reserved.