Class JSONAPIRequestBodyConverter<T>
- java.lang.Object
-
- com.github.jasminb.jsonapi.retrofit.JSONAPIRequestBodyConverter<T>
-
- All Implemented Interfaces:
retrofit2.Converter<T,okhttp3.RequestBody>
public class JSONAPIRequestBodyConverter<T> extends Object implements retrofit2.Converter<T,okhttp3.RequestBody>
JSON API request body converter implementation.- Author:
- jbegic
-
-
Constructor Summary
Constructors Constructor Description JSONAPIRequestBodyConverter(ResourceConverter converter)Creates new JSONAPIRequestBodyConverter.
-
-
-
Constructor Detail
-
JSONAPIRequestBodyConverter
public JSONAPIRequestBodyConverter(ResourceConverter converter)
Creates new JSONAPIRequestBodyConverter.- Parameters:
converter-ResourceConverterconverter instance
-
-
Method Detail
-
convert
public okhttp3.RequestBody convert(T t) throws IOException
- Specified by:
convertin interfaceretrofit2.Converter<T,okhttp3.RequestBody>- Throws:
IOException
-
-