OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.gaccount.receive;
import android.content.Context;
import android.os.Handler;
import android.util.Log;
import com.excelliance.kxqp.gs.discover.model.ResponseData;
import com.excelliance.kxqp.gs.listener.h;
import com.excelliance.kxqp.gs.ui.gaccount.receive.c;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bz;
import com.excelliance.kxqp.gs.util.cg;
import com.excelliance.kxqp.gs.util.cn;
import com.excelliance.kxqp.gs.util.w;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
public class d extends com.excelliance.kxqp.gs.discover.a.a implements com.excelliance.kxqp.gs.i.e, h.b, c.a {
private Gson e;
private c.b f;
private com.excelliance.kxqp.gs.j.b g;
@Override
public Handler getHandler() {
return null;
}
@Override
protected int l_() {
return 1;
}
@Override
public void showProgress(String str) {
}
public d(Context context, c.b bVar) {
super(context);
this.f = bVar;
this.e = new Gson();
this.g = new com.excelliance.kxqp.gs.j.b(this.f4602b.getApplicationContext());
this.g.a((com.excelliance.kxqp.gs.j.b) this);
}
@Override
public void initData() {
a(new com.excelliance.kxqp.gs.discover.a.d<ReceiveBean>() {
@Override
public ResponseData<ReceiveBean> a() {
return new com.excelliance.kxqp.gs.discover.bbs.c(d.this.f4602b).a(cn.i(d.this.f4602b).toString(), "https://api.ourplay.com.cn/coupon/config", new com.excelliance.kxqp.gs.discover.a.c<ReceiveBean>() {
@Override
public ResponseData<ReceiveBean> a(String str) {
try {
return (ResponseData) d.this.e.a(str, new TypeToken<ResponseData<ReceiveBean>>() {
}.getType());
} catch (Exception e) {
az.d(d.this.f4601a, "ex:" + e.getMessage());
e.printStackTrace();
return null;
}
}
});
}
}, new com.excelliance.kxqp.gs.discover.a.b<ReceiveBean>() {
@Override
public void a() {
if (d.this.f != null) {
d.this.f.a();
}
}
@Override
public void a(ReceiveBean receiveBean, Object... objArr) {
Log.d(d.this.f4601a, "onSuccess: " + receiveBean);
if (d.this.f != null) {
if (receiveBean != null) {
d.this.f.a(true, receiveBean);
} else {
a(w.e(d.this.f4602b, "server_busy"));
}
}
}
@Override
public void a(String str) {
if (d.this.f4602b == null || d.this.f == null) {
return;
}
cg.a(d.this.f4602b, str);
d.this.f.a(false, null);
}
@Override
public void g_() {
if (d.this.f != null) {
d.this.f.c();
}
}
});
}
@Override
public void a() {
this.f = null;
this.f4602b = null;
this.e = null;
}
@Override
public Context getContext() {
return this.f4602b;
}
@Override
public void updateView() {
bz.a().a(this.f4602b, 33000, 5, "完成了0元购");
initData();
}
@Override
public void a(int i, int i2, double d, int i3, int i4, int i5) {
this.g.a(i, i2, d, i3, i4, i5);
}
}