OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 ApiManager.java 源代码,内容仅作参考
package com.excelliance.kxqp.api;
import a.x;
import android.content.Context;
import android.util.LruCache;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.concurrent.TimeUnit;
import org.json.JSONObject;
import retrofit2.a.a.h;
import retrofit2.n;
public class ApiManager {
private Gson f2395a;
private LruCache<String, com.excelliance.kxqp.api.a> f2396b;
public static native ApiManager getInstance();
static class a {
private static final ApiManager f2397a = new ApiManager();
}
private ApiManager() {
this.f2396b = new LruCache<>(2);
this.f2395a = new Gson();
}
@Deprecated
public com.excelliance.kxqp.api.a a() {
return (com.excelliance.kxqp.api.a) new n.a().a("https://api.ourplay.com.cn/").a(new com.excelliance.kxqp.api.b.b(this.f2395a)).a().a(com.excelliance.kxqp.api.a.class);
}
public com.excelliance.kxqp.api.a a(Context context) {
return (com.excelliance.kxqp.api.a) new n.a().a("https://api.ourplay.com.cn/").a(new com.excelliance.kxqp.api.b.a(this.f2395a, f.a(context))).a().a(com.excelliance.kxqp.api.a.class);
}
public com.excelliance.kxqp.api.a b(Context context) {
return (com.excelliance.kxqp.api.a) new n.a().a("https://api.ourplay.com.cn/").a(new com.excelliance.kxqp.api.b.c(this.f2395a, f.a(context))).a().a(com.excelliance.kxqp.api.a.class);
}
public com.excelliance.kxqp.api.a a(Context context, long j, long j2) {
return (com.excelliance.kxqp.api.a) new n.a().a("https://api.ourplay.com.cn/").a(new com.excelliance.kxqp.api.b.c(this.f2395a, f.a(context))).a(new x.a().a(j, TimeUnit.MILLISECONDS).c(j2, TimeUnit.MILLISECONDS).a(new e(5000L)).a()).a().a(com.excelliance.kxqp.api.a.class);
}
public com.excelliance.kxqp.api.a a(Context context, long j, long j2, String str) {
return (com.excelliance.kxqp.api.a) new n.a().a(str).a(retrofit2.b.a.a.a(new GsonBuilder().a())).a(new x.a().a(j, TimeUnit.MILLISECONDS).c(j2, TimeUnit.MILLISECONDS).a(new e(5000L)).a(new com.excelliance.kxqp.api.c.a(f.b(context))).a()).a().a(com.excelliance.kxqp.api.a.class);
}
public com.excelliance.kxqp.api.a b(Context context, long j, long j2, String str) {
return (com.excelliance.kxqp.api.a) new n.a().a(str).a(new com.excelliance.kxqp.api.b.d(this.f2395a, new JSONObject())).a(new x.a().a(j, TimeUnit.MILLISECONDS).c(j2, TimeUnit.MILLISECONDS).a(new e(5000L)).a(new com.excelliance.kxqp.api.c.a(f.b(context))).a()).a().a(com.excelliance.kxqp.api.a.class);
}
public synchronized com.excelliance.kxqp.api.a a(Context context, String str) {
if (this.f2396b.get(str) == null) {
this.f2396b.put(str, new n.a().a(str).a(retrofit2.b.a.a.a(new GsonBuilder().a())).a(h.a()).a(new x.a().a(15000L, TimeUnit.MILLISECONDS).c(15000L, TimeUnit.MILLISECONDS).a(new com.excelliance.kxqp.api.c.a(f.b(context))).a()).a().a(com.excelliance.kxqp.api.a.class));
}
return this.f2396b.get(str);
}
public com.excelliance.kxqp.api.a c(Context context, long j, long j2, String str) {
return (com.excelliance.kxqp.api.a) new n.a().a(str).a(new com.excelliance.kxqp.api.b.a(this.f2395a, f.a(context))).a(new x.a().a(j, TimeUnit.MILLISECONDS).c(j2, TimeUnit.MILLISECONDS).a(new e(5000L)).a()).a().a(com.excelliance.kxqp.api.a.class);
}
public com.excelliance.kxqp.api.a b(Context context, String str) {
return (com.excelliance.kxqp.api.a) new n.a().a(str).a(retrofit2.b.a.a.a(new GsonBuilder().a())).a(new x.a().a(15L, TimeUnit.SECONDS).c(15L, TimeUnit.SECONDS).a(new com.excelliance.kxqp.api.c.a(f.b(context))).a()).a().a(com.excelliance.kxqp.api.a.class);
}
}