正在查看: Aptoide v9.22.5.3 应用的 SetUserSettings.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aptoide v9.22.5.3 应用的 SetUserSettings.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package cm.aptoide.pt.dataprovider.ws.v7;
import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator;
import cm.aptoide.pt.dataprovider.model.v7.BaseV7Response;
import cm.aptoide.pt.dataprovider.ws.BodyInterceptor;
import cm.aptoide.pt.dataprovider.ws.v7.V7;
import okhttp3.OkHttpClient;
import retrofit2.Converter$Factory;
public class SetUserSettings extends V7<BaseV7Response, Body> {
public static class Body extends BaseBody {
public boolean mature;
public Body(boolean z) {
this.mature = z;
}
@Override
public boolean isMature() {
return this.mature;
}
@Override
public void setMature(boolean z) {
this.mature = z;
}
}
protected SetUserSettings(Body body, String str, OkHttpClient okHttpClient, Converter$Factory converter$Factory, BodyInterceptor bodyInterceptor, TokenInvalidator tokenInvalidator) {
super(body, str, okHttpClient, converter$Factory, bodyInterceptor, tokenInvalidator);
}
public static String getHost() {
return "https://ws75-primary.aptoide.com/api/7/";
}
public static SetUserSettings of(boolean z, OkHttpClient okHttpClient, Converter$Factory converter$Factory, BodyInterceptor bodyInterceptor, TokenInvalidator tokenInvalidator) {
Body body = new Body(z);
body.setMature(z);
return new SetUserSettings(body, getHost(), okHttpClient, converter$Factory, bodyInterceptor, tokenInvalidator);
}
@Override
public rx.e<BaseV7Response> loadDataFromNetwork(V7.Interfaces interfaces, boolean z) {
return interfaces.setUserSettings((Body) this.body);
}
}