程序包 gateway.api
类 GsonRequestBodyConverter<T>
java.lang.Object
gateway.api.GsonRequestBodyConverter<T>
- 类型参数:
T-
- 所有已实现的接口:
retrofit2.Converter<T,okhttp3.RequestBody>
final class GsonRequestBodyConverter<T>
extends Object
implements retrofit2.Converter<T,okhttp3.RequestBody>
JSON请求体转换器
- 作者:
- neeker
-
嵌套类概要
从接口继承的嵌套类/接口 retrofit2.Converter
retrofit2.Converter.Factory -
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
MEDIA_TYPE
private static final okhttp3.MediaType MEDIA_TYPE -
UTF_8
-
gson
private final com.google.gson.Gson gson -
adapter
-
-
构造器详细资料
-
GsonRequestBodyConverter
GsonRequestBodyConverter(com.google.gson.Gson gson, com.google.gson.TypeAdapter<T> adapter)
-
-
方法详细资料
-
convert
- 指定者:
convert在接口中retrofit2.Converter<T,okhttp3.RequestBody> - 抛出:
IOException
-