OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 h.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.l;
import a.q;
import android.content.Context;
import android.os.Parcelable;
import com.excelliance.kxqp.api.ApiManager;
import com.excelliance.kxqp.bean.GameAppConfigBean;
import com.excelliance.kxqp.bean.LevelPositionBean;
import com.excelliance.kxqp.bean.TeamUserListInfoBean;
import com.excelliance.kxqp.gs.appstore.model.ResponseData;
import java.util.HashMap;
import java.util.List;
public class h {
private static volatile h f6608a;
private static HashMap<Integer, GameAppConfigBean> c = new HashMap<>();
private Context f6609b;
public interface a {
void a(boolean z);
}
public interface b {
void a();
void a(String str);
}
public static h a(Context context) {
if (f6608a == null) {
synchronized (h.class) {
if (f6608a == null) {
f6608a = new h(context.getApplicationContext());
}
}
}
return f6608a;
}
private h(Context context) {
this.f6609b = context;
}
public GameAppConfigBean a(int i, boolean z) {
GameAppConfigBean gameAppConfigBean = c.get(Integer.valueOf(i));
if (gameAppConfigBean == null) {
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(this.f6609b);
cVar.a(ApiManager.getInstance().a(this.f6609b, 15000L, 15000L, "https://gapi.ourplay.com.cn/").K(new q.a().a("appid", String.valueOf(i)).a()));
ResponseData b2 = cVar.b();
if (b2.data == 0) {
return null;
}
c.put(Integer.valueOf(i), com.excelliance.kxqp.repository.a.a((Parcelable) b2.data));
if (z) {
if (((GameAppConfigBean) b2.data).level != null) {
LevelPositionBean levelPositionBean = new LevelPositionBean();
levelPositionBean.value = -1;
levelPositionBean.name = "不限";
((GameAppConfigBean) b2.data).level.add(0, levelPositionBean);
}
if (((GameAppConfigBean) b2.data).position != null) {
LevelPositionBean levelPositionBean2 = new LevelPositionBean();
levelPositionBean2.value = -1;
levelPositionBean2.name = "不限";
((GameAppConfigBean) b2.data).position.add(0, levelPositionBean2);
}
}
return (GameAppConfigBean) b2.data;
}
GameAppConfigBean gameAppConfigBean2 = (GameAppConfigBean) com.excelliance.kxqp.repository.a.a(gameAppConfigBean);
if (z) {
if (gameAppConfigBean2.level != null) {
LevelPositionBean levelPositionBean3 = new LevelPositionBean();
levelPositionBean3.value = -1;
levelPositionBean3.name = "不限";
gameAppConfigBean2.level.add(0, levelPositionBean3);
}
if (gameAppConfigBean2.position != null) {
LevelPositionBean levelPositionBean4 = new LevelPositionBean();
levelPositionBean4.value = -1;
levelPositionBean4.name = "不限";
gameAppConfigBean2.position.add(0, levelPositionBean4);
}
}
return gameAppConfigBean2;
}
public void a(int i, String str, String str2, int i2, b bVar) {
q a2 = new q.a().a("appid", String.valueOf(i)).a("nick", str).a("level", String.valueOf(i2)).a("position", String.valueOf(str2)).a();
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(this.f6609b);
cVar.a(ApiManager.getInstance().a(this.f6609b, 15000L, 15000L, "https://gapi.ourplay.com.cn/").L(a2));
ResponseData b2 = cVar.b();
if (bVar != null) {
if (b2.code == 1) {
bVar.a();
} else {
bVar.a(b2.msg);
}
}
}
public List<TeamUserListInfoBean> a(int i, int i2, int i3, String str, String str2) {
q a2 = new q.a().a("appid", String.valueOf(i3)).a("page", String.valueOf(i)).a("pagesize", String.valueOf(i2)).a("level", str).a("position", str2).a();
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(this.f6609b);
cVar.a(ApiManager.getInstance().a(this.f6609b, 15000L, 15000L, "https://gapi.ourplay.com.cn/").M(a2));
ResponseData b2 = cVar.b();
if (b2.data != 0) {
return (List) b2.data;
}
return null;
}
public void a(String str) {
q a2 = new q.a().a("appids", str).a();
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(this.f6609b);
cVar.a(ApiManager.getInstance().a(this.f6609b, 15000L, 15000L, "https://gapi.ourplay.com.cn/").N(a2));
if (cVar.b().data != 0) {
}
}
public void a(int i, a aVar) {
q a2 = new q.a().a("appid", String.valueOf(i)).a();
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(this.f6609b);
cVar.a(ApiManager.getInstance().a(this.f6609b, 15000L, 15000L, "https://gapi.ourplay.com.cn/").O(a2));
ResponseData b2 = cVar.b();
if (aVar != null) {
aVar.a(b2.code == 200);
}
}
}