Skip to content

JakeWoki/RetrofitDemo

Repository files navigation

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

About

Encrypt andr Decrypt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages