Fast Orange v3.5.3版本的 MD5 值为:33b91aba50c566533dfd683a85f79158
以下内容为反编译后的 ApiProvider.java 源代码,内容仅作参考
package com.free.vpn.proxy.hotspot.data.remote;
import android.content.Context;
import com.free.vpn.proxy.hotspot.data.remote.api.PostbackApi;
import com.free.vpn.proxy.hotspot.data.remote.api.StatsCheckApi;
import com.free.vpn.proxy.hotspot.data.remote.api.conf.AccountApi;
import com.free.vpn.proxy.hotspot.data.remote.api.conf.ApkDownloadApi;
import com.free.vpn.proxy.hotspot.data.remote.api.conf.ApplicationConfigApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.DalizfApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.FuturraDirectApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.GateWayApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.ProxyPayApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.RcPayApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.XXPayApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.XiguapayApi;
import com.free.vpn.proxy.hotspot.data.remote.api.processings.YusopayApi;
import com.free.vpn.proxy.hotspot.data.remote.intrcept.ConfigIpHeadersInterceptor;
import com.free.vpn.proxy.hotspot.ge1;
import com.free.vpn.proxy.hotspot.jl3;
import com.free.vpn.proxy.hotspot.kt2;
import com.free.vpn.proxy.hotspot.oj3;
import com.free.vpn.proxy.hotspot.pj3;
import com.free.vpn.proxy.hotspot.u80;
import com.free.vpn.proxy.hotspot.zs4;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
import kotlin.Metadata;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import web.accelerator.p003new.util.R;
@Metadata(d1 = {"\u0000\u0096\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b?\u0010@J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u001c\u0010\t\u001a\u00020\b2\b\b\u0002\u0010\u0007\u001a\u00020\u00062\b\b\u0002\u0010\u0003\u001a\u00020\u0002H\u0002J\u001a\u0010\r\u001a\u00020\f2\u0006\u0010\u000b\u001a\u00020\n2\b\b\u0002\u0010\u0003\u001a\u00020\u0002H\u0002J\u000e\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u000b\u001a\u00020\nJ\u000e\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\nJ\u000e\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u0014\u001a\u00020\u0013R\u0011\u0010\u001a\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0019R\u0011\u0010\u001e\u001a\u00020\u001b8F¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001dR\u0011\u0010\"\u001a\u00020\u001f8F¢\u0006\u0006\u001a\u0004\b \u0010!R\u0011\u0010&\u001a\u00020#8F¢\u0006\u0006\u001a\u0004\b$\u0010%R\u0011\u0010*\u001a\u00020'8F¢\u0006\u0006\u001a\u0004\b(\u0010)R\u0011\u0010.\u001a\u00020+8F¢\u0006\u0006\u001a\u0004\b,\u0010-R\u0011\u00102\u001a\u00020/8F¢\u0006\u0006\u001a\u0004\b0\u00101R\u0011\u00106\u001a\u0002038F¢\u0006\u0006\u001a\u0004\b4\u00105R\u0011\u0010:\u001a\u0002078F¢\u0006\u0006\u001a\u0004\b8\u00109R\u0011\u0010>\u001a\u00020;8F¢\u0006\u0006\u001a\u0004\b<\u0010=¨\u0006A"}, d2 = {"Lcom/free/vpn/proxy/hotspot/data/remote/ApiProvider;", "", "Lokhttp3/logging/HttpLoggingInterceptor$Level;", "level", "Lokhttp3/logging/HttpLoggingInterceptor;", "createLoggingInterceptor", "", "timeout", "Lokhttp3/OkHttpClient$Builder;", "createDefaultClient", "", "url", "Lcom/free/vpn/proxy/hotspot/pj3;", "createDefaultRetrofit", "Lcom/free/vpn/proxy/hotspot/data/remote/api/conf/AccountApi;", "createAccountApi", "domain", "Lcom/free/vpn/proxy/hotspot/data/remote/api/conf/ApplicationConfigApi;", "appConfigApi", "Landroid/content/Context;", "context", "Lcom/free/vpn/proxy/hotspot/data/remote/api/StatsCheckApi;", "getStatsCheckApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/RcPayApi;", "getRcPayApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/RcPayApi;", "rcPayApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/conf/ApkDownloadApi;", "getApkDownloadApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/conf/ApkDownloadApi;", "apkDownloadApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/PostbackApi;", "getBinom", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/PostbackApi;", "binom", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/ProxyPayApi;", "getProxyPayApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/ProxyPayApi;", "proxyPayApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/DalizfApi;", "getJingzanApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/DalizfApi;", "jingzanApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/FuturraDirectApi;", "getFuturraDirectApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/FuturraDirectApi;", "futurraDirectApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/YusopayApi;", "getYusopayApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/YusopayApi;", "yusopayApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/GateWayApi;", "getGatewayApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/GateWayApi;", "gatewayApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/XiguapayApi;", "getXiguapayApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/XiguapayApi;", "xiguapayApi", "Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/XXPayApi;", "getXxPayApi", "()Lcom/free/vpn/proxy/hotspot/data/remote/api/processings/XXPayApi;", "xxPayApi", "<init>", "()V", "app_chinaSeoDirectBlackRelease"}, k = 1, mv = {1, 8, 0})
public final class ApiProvider {
private final OkHttpClient.Builder createDefaultClient(long timeout, HttpLoggingInterceptor.Level level) {
OkHttpClient.Builder addInterceptor = new OkHttpClient.Builder().addInterceptor(createLoggingInterceptor(level));
TimeUnit timeUnit = TimeUnit.SECONDS;
return addInterceptor.writeTimeout(timeout, timeUnit).connectTimeout(timeout, timeUnit).readTimeout(timeout, timeUnit);
}
public static OkHttpClient.Builder createDefaultClient$default(ApiProvider apiProvider, long j, HttpLoggingInterceptor.Level level, int i, Object obj) {
if ((i & 1) != 0) {
j = 12;
}
if ((i & 2) != 0) {
level = HttpLoggingInterceptor.Level.NONE;
}
return apiProvider.createDefaultClient(j, level);
}
private final pj3 createDefaultRetrofit(String url, HttpLoggingInterceptor.Level level) {
oj3 oj3Var = new oj3();
oj3Var.a(url);
oj3Var.c(createDefaultClient$default(this, 0L, level, 1, null).build());
oj3Var.c.add(ge1.d(new Gson()));
oj3Var.d.add(jl3.b());
return oj3Var.b();
}
public static pj3 createDefaultRetrofit$default(ApiProvider apiProvider, String str, HttpLoggingInterceptor.Level level, int i, Object obj) {
if ((i & 2) != 0) {
level = HttpLoggingInterceptor.Level.NONE;
}
return apiProvider.createDefaultRetrofit(str, level);
}
private final HttpLoggingInterceptor createLoggingInterceptor(HttpLoggingInterceptor.Level level) {
HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(null, 1, 0 == true ? 1 : 0);
httpLoggingInterceptor.setLevel(level);
return httpLoggingInterceptor;
}
public final ApplicationConfigApi appConfigApi(String domain) {
zs4.o(domain, "domain");
oj3 oj3Var = new oj3();
oj3Var.a(u80.B(domain));
oj3Var.c(createDefaultClient(12L, HttpLoggingInterceptor.Level.NONE).addInterceptor(new ConfigIpHeadersInterceptor()).build());
oj3Var.c.add(ge1.d(new GsonBuilder().create()));
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(ApplicationConfigApi.class);
zs4.n(b, "Builder()\n .b…ionConfigApi::class.java)");
return (ApplicationConfigApi) b;
}
public final AccountApi createAccountApi(String url) {
zs4.o(url, "url");
oj3 oj3Var = new oj3();
oj3Var.a(u80.B(url));
oj3Var.c(createDefaultClient(12L, HttpLoggingInterceptor.Level.BODY).addInterceptor(new ConfigIpHeadersInterceptor()).build());
oj3Var.c.add(ge1.d(new GsonBuilder().create()));
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(AccountApi.class);
zs4.n(b, "Builder()\n .b…e(AccountApi::class.java)");
return (AccountApi) b;
}
public final ApkDownloadApi getApkDownloadApi() {
Object b = createDefaultRetrofit("https://content.yinianci.net/pub/", HttpLoggingInterceptor.Level.BODY).b(ApkDownloadApi.class);
zs4.n(b, "createDefaultRetrofit(CD…kDownloadApi::class.java)");
return (ApkDownloadApi) b;
}
public final PostbackApi getBinom() {
oj3 oj3Var = new oj3();
oj3Var.a("https://cn.trkclicklog.com/");
oj3Var.c(createDefaultClient$default(this, 0L, null, 3, null).build());
oj3Var.c.add(ge1.d(new Gson()));
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(PostbackApi.class);
zs4.n(b, "Builder()\n .b…(PostbackApi::class.java)");
return (PostbackApi) b;
}
public final FuturraDirectApi getFuturraDirectApi() {
oj3 oj3Var = new oj3();
oj3Var.a("https://factspay.zhaiyiyou.com/");
oj3Var.c(createDefaultClient(60L, HttpLoggingInterceptor.Level.BODY).build());
kt2 c = kt2.c();
ArrayList arrayList = oj3Var.c;
arrayList.add(c);
arrayList.add(ge1.c());
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(FuturraDirectApi.class);
zs4.n(b, "Builder().baseUrl(\"https…rraDirectApi::class.java)");
return (FuturraDirectApi) b;
}
public final GateWayApi getGatewayApi() {
oj3 oj3Var = new oj3();
oj3Var.a("http://121.43.100.148:811/");
oj3Var.c(createDefaultClient(20L, HttpLoggingInterceptor.Level.BODY).build());
oj3Var.c.add(ge1.c());
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(GateWayApi.class);
zs4.n(b, "Builder()\n .b…e(GateWayApi::class.java)");
return (GateWayApi) b;
}
public final DalizfApi getJingzanApi() {
oj3 oj3Var = new oj3();
oj3Var.a("https://dalizf.net/");
oj3Var.c(createDefaultClient(20L, HttpLoggingInterceptor.Level.BODY).build());
kt2 c = kt2.c();
ArrayList arrayList = oj3Var.c;
arrayList.add(c);
arrayList.add(ge1.d(new GsonBuilder().create()));
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(DalizfApi.class);
zs4.n(b, "Builder().baseUrl(\"https…te(DalizfApi::class.java)");
return (DalizfApi) b;
}
public final ProxyPayApi getProxyPayApi() {
oj3 oj3Var = new oj3();
oj3Var.a("https://hypay.in/");
oj3Var.c(createDefaultClient(20L, HttpLoggingInterceptor.Level.BODY).build());
kt2 c = kt2.c();
ArrayList arrayList = oj3Var.c;
arrayList.add(c);
arrayList.add(ge1.d(new GsonBuilder().create()));
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(ProxyPayApi.class);
zs4.n(b, "Builder().baseUrl(\"https…(ProxyPayApi::class.java)");
return (ProxyPayApi) b;
}
public final RcPayApi getRcPayApi() {
oj3 oj3Var = new oj3();
oj3Var.a("https://api.rcpays.com/");
oj3Var.c(createDefaultClient(20L, HttpLoggingInterceptor.Level.BODY).build());
kt2 c = kt2.c();
ArrayList arrayList = oj3Var.c;
arrayList.add(c);
arrayList.add(ge1.c());
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(RcPayApi.class);
zs4.n(b, "Builder().baseUrl(RCPAY_…ate(RcPayApi::class.java)");
return (RcPayApi) b;
}
public final StatsCheckApi getStatsCheckApi(Context context) {
zs4.o(context, "context");
oj3 oj3Var = new oj3();
oj3Var.a("https://g." + context.getString(R.string.api));
kt2 c = kt2.c();
ArrayList arrayList = oj3Var.c;
arrayList.add(c);
oj3Var.d.add(jl3.b());
arrayList.add(ge1.d(new GsonBuilder().setDateFormat("yyyy-MM-dd").create()));
oj3Var.c(createDefaultClient$default(this, 0L, null, 3, null).build());
Object b = oj3Var.b().b(StatsCheckApi.class);
zs4.n(b, "Builder()\n .baseU…tatsCheckApi::class.java)");
return (StatsCheckApi) b;
}
public final XiguapayApi getXiguapayApi() {
oj3 oj3Var = new oj3();
oj3Var.a("http://pay.mssdk.com/");
oj3Var.c(createDefaultClient(20L, HttpLoggingInterceptor.Level.BODY).build());
oj3Var.c.add(ge1.c());
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(XiguapayApi.class);
zs4.n(b, "Builder()\n .b…(XiguapayApi::class.java)");
return (XiguapayApi) b;
}
public final XXPayApi getXxPayApi() {
oj3 oj3Var = new oj3();
oj3Var.a("https://pay.leipay.co/");
oj3Var.c(createDefaultClient(20L, HttpLoggingInterceptor.Level.BODY).build());
oj3Var.c.add(ge1.c());
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(XXPayApi.class);
zs4.n(b, "Builder()\n .b…ate(XXPayApi::class.java)");
return (XXPayApi) b;
}
public final YusopayApi getYusopayApi() {
oj3 oj3Var = new oj3();
oj3Var.a("https://pay.yusonczxep.cn/");
oj3Var.c(createDefaultClient(20L, HttpLoggingInterceptor.Level.BODY).build());
oj3Var.c.add(ge1.c());
oj3Var.d.add(jl3.b());
Object b = oj3Var.b().b(YusopayApi.class);
zs4.n(b, "Builder()\n .b…e(YusopayApi::class.java)");
return (YusopayApi) b;
}
}