Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 746 Bytes

README.md

File metadata and controls

29 lines (27 loc) · 746 Bytes

RetrofitDemo


First

final Call<VersionModel> commentsCall = fieldPrefs.getApi().version(FieldService.ANDROID_DEVICE, BuildConfig.VERSION_NAME, "dddddddddddddd");


if @Field stringConverter not work.



Second

VersionParam param = new VersionParam();
param.type = "android";
param.appVersion = "1.0";
param.token = "gggggggggggg";
final Call<VersionModel> commentsCall = bodyPrefs.getApi().version(param);


if @Body requestBodyConverter can work.



Third

final Call<VersionModel> commentsCall = interceptorPrefs.getApi().version(InterceptorService.ANDROID_DEVICE, BuildConfig.VERSION_NAME, "gggggggggggg");


if used Interceptor,it work