正在查看: 95爱播免登录版 v3.1.9 应用的 YBDepositPayActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 YBDepositPayActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.showself.domain.RechargeValue;
import com.showself.service.g;
import com.showself.utils.Utils;
import com.showself.utils.r0;
import java.util.HashMap;
import java.util.List;
public class YBDepositPayActivity extends c {
private String a;
private int b;
private int c;
private int d;
private List<RechargeValue> f2929e;
private com.r.b.d f2930f;
private ListView f2931g;
View.OnClickListener f2932h = new a();
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
int id = view.getId();
if (id == 2131296486) {
YBDepositPayActivity.this.finish();
} else {
if (id != 2131299245) {
return;
}
RechargeValue rechargeValue = (RechargeValue) view.getTag();
YBDepositPayActivity.this.d = rechargeValue.getProduct_id();
YBDepositPayActivity.this.C();
}
}
}
private void B() {
HashMap hashMap = new HashMap();
hashMap.put("type", Integer.valueOf(this.b));
hashMap.put("category", Integer.valueOf(this.c));
addTask(new com.showself.service.f(10075, hashMap), this);
}
public void C() {
HashMap hashMap = new HashMap();
hashMap.put("fuid", Integer.valueOf(r0.y(this).getUserId()));
hashMap.put("type", Integer.valueOf(this.b));
hashMap.put("category", Integer.valueOf(this.c));
hashMap.put("product_id", Integer.valueOf(this.d));
addTask(new com.showself.service.f(10076, hashMap), this);
Utils.U0(this);
}
@Override
public void init() {
TextView textView = (TextView) findViewById(R.id.tv_nav_title);
Button button = (Button) findViewById(R.id.btn_nav_left);
this.f2931g = (ListView) findViewById(R.id.lv_live_address_content);
textView.setText(this.a);
button.setOnClickListener(this.f2932h);
com.r.b.d dVar = new com.r.b.d(this, this.f2932h);
this.f2930f = dVar;
this.f2931g.setAdapter((ListAdapter) dVar);
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.recharge_list);
this.a = getIntent().getStringExtra("title");
this.b = getIntent().getIntExtra("type", 121);
this.c = getIntent().getIntExtra("category", 1);
init();
B();
}
@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
public void refresh(Object... objArr) {
Utils.n(this);
int intValue = ((Integer) objArr[0]).intValue();
HashMap hashMap = (HashMap) objArr[1];
if (hashMap != null) {
int intValue2 = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
String str = (String) hashMap.get(com.showself.net.e.o1);
if (intValue != 10075) {
if (intValue == 10076) {
if (intValue2 == com.showself.net.e.m1) {
String str2 = (String) hashMap.get("retmsg");
Intent intent = new Intent((Context) this, (Class<?>) YBWebviewRecharge.class);
intent.putExtra("url", str2);
intent.putExtra("title", "充值");
startActivity(intent);
finish();
} else {
Utils.Z0(this, str);
}
}
} else if (intValue2 == com.showself.net.e.m1) {
List<RechargeValue> list = (List) hashMap.get("recharge_list");
this.f2929e = list;
if (list != null && list.size() > 0) {
this.f2930f.a(this.f2929e);
}
} else {
Utils.Z0(this, str);
}
}
g.i(this);
}
}