正在查看: SpeedCash v6.5.1482 应用的 OTPCallInfoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: SpeedCash v6.5.1482 应用的 OTPCallInfoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bm.sc.bebasbayar.ui.activity.auth;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.bm.sc.bebasbayar.R;
import com.bm.sc.bebasbayar.handler.QRISO;
import com.bm.sc.bebasbayar.helper.Affinity;
import com.bm.sc.bebasbayar.helper.AuthHelper;
import com.bm.sc.bebasbayar.helper.EventHelper;
import com.bm.sc.bebasbayar.helper.FirebaseHelper;
import com.bm.sc.bebasbayar.iface.BBCallback;
import com.bm.sc.bebasbayar.message.qr.DataMessage;
import com.bm.sc.bebasbayar.ui.activity.auth.OTPCallInfoActivity;
import com.bm.sc.bebasbayar.ui.activity.ticket.TrainFormActivity;
import com.bm.sc.util.common.Var;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
import java.util.HashMap;
public class OTPCallInfoActivity extends AuthActivity implements View.OnClickListener {
public String d;
public String e;
public String f;
public String g;
public String h;
public String i;
public int j;
public static Bundle getBundle(AuthActivity authActivity, String str, int i) {
Bundle bundle = new Bundle();
bundle.putString("phone", str);
bundle.putInt("state", i);
bundle.putAll(authActivity.getGPSBundle());
return bundle;
}
public static Bundle getBundleRegister(AuthActivity authActivity, String str, String str2, String str3, String str4, String str5) {
Bundle bundle = getBundle(authActivity, str, 1);
bundle.putString(DataMessage.PIN, str2);
bundle.putString(TrainFormActivity.K_EMAIL, str3);
bundle.putString("upline", str4);
bundle.putString("name", str5);
return bundle;
}
public static Bundle getBundleWithPin(AuthActivity authActivity, String str, String str2) {
Bundle bundle = getBundle(authActivity, str, 2);
bundle.putString(DataMessage.PIN, str2);
return bundle;
}
public void l(int i, AuthHelper.OTPResponse oTPResponse) {
Affinity.launch(this, OTPCallActivity.class, OTPCallActivity.getBundle(this, this.d, this.e, this.f, this.g, this.h, oTPResponse.getDate(), "", this.i));
}
public void m(int i, AuthHelper.OTPResponse oTPResponse) {
String providerRefId = oTPResponse.getProviderRefId();
int i2 = this.j;
if (i2 == 2) {
Bundle bundle = OTPCallActivity.getBundle(this, this.d, this.e, oTPResponse.getDate(), oTPResponse.getToken());
bundle.putString("providerReffId", providerRefId);
Affinity.launch(this, OTPCallActivity.class, bundle);
} else if (i2 == 1) {
Bundle bundle2 = OTPCallActivity.getBundle(this, this.d, this.e, this.f, this.g, this.h, oTPResponse.getDate(), oTPResponse.getToken(), "call");
bundle2.putString("providerReffId", providerRefId);
Affinity.launch(this, OTPCallActivity.class, bundle2);
} else {
Bundle bundle3 = OTPCallActivity.getBundle(this, this.d, i2, oTPResponse.getDate(), oTPResponse.getToken());
bundle3.putString("providerReffId", providerRefId);
Affinity.launch(this, OTPCallActivity.class, bundle3);
}
}
@Override
public int getLayoutResource() {
return R.layout.activity_otp_call_info;
}
@Override
public int getRootLayoutId() {
return R.id.layout_root;
}
public final String j(String str) {
String replaceAll = str.replaceAll("\\D", "");
if (replaceAll.startsWith(QRISO.ID_ADD_DATA)) {
return "0" + replaceAll.substring(2);
}
if (!replaceAll.startsWith("+62")) {
return replaceAll;
}
return "0" + replaceAll.substring(3);
}
public final void k() {
HashMap hashMap = new HashMap();
hashMap.put("app_latitude", "0");
hashMap.put("app_longitude", "0");
hashMap.put("app_gps_state", "0");
hashMap.put("app_uri", Var.toString(getApp_uri(), ""));
hashMap.put("state", Var.toString(Integer.valueOf(this.j), ""));
hashMap.put("upline", this.g);
hashMap.put("name", this.h);
FirebaseHelper.sendEventBoard(this, this.d, this.f, getClass().getSimpleName().replace("Activity", "") + "MissCall", hashMap);
if (this.j == 1 && (this.i.equalsIgnoreCase("sms") || this.i.equalsIgnoreCase("wa"))) {
AuthHelper.requestOTPv2(this, this.d, this.j, this.i, new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
OTPCallInfoActivity.this.l(i, (AuthHelper.OTPResponse) obj);
}
});
} else {
AuthHelper.requestOTPCitCall(this, this.d, this.j, new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
OTPCallInfoActivity.this.m(i, (AuthHelper.OTPResponse) obj);
}
});
}
}
@Override
public void onClick(View view) {
if (view.getId() == 2131362369) {
k();
} else if (view.getId() == 2131362103) {
onBackPressed();
}
}
@Override
public void onCreate(Bundle bundle) {
HashMap hashMap;
super.onCreate(bundle);
EventHelper.sendAllEvents(this, FirebaseHelper.EVENT_SCREEN_VIEW, getClass().getSimpleName().replace("Activity", ""));
if (getIntent().getExtras() != null) {
Bundle extras = getIntent().getExtras();
this.d = extras.getString("phone", "");
this.j = extras.getInt("state", 1);
this.e = extras.getString(DataMessage.PIN, "");
this.f = extras.getString(TrainFormActivity.K_EMAIL, "");
this.g = extras.getString("upline", "");
this.h = extras.getString("name", "");
hashMap = Var.toHashMap(extras.getSerializable("register_config"));
} else {
this.d = "";
this.j = 1;
this.e = "";
this.f = "";
this.g = "";
this.h = "";
hashMap = new HashMap();
}
if (!this.d.isEmpty()) {
this.d = j(this.d);
}
TextView textView = (TextView) findViewById(R.id.otp_phone_heading);
TextView textView2 = (TextView) findViewById(R.id.otp_phone_subheading);
ImageView imageView = (ImageView) findViewById(R.id.otp_img_type);
if (hashMap.size() > 0) {
this.i = Var.toString(hashMap.get("config"), "");
textView.setText(Var.toString(hashMap.get("heading"), ""));
textView2.setText(Var.toString(hashMap.get("subheading"), ""));
Glide.with(this).load(Var.toString(hashMap.get("img_url"), "")).apply(new RequestOptions().override(imageView.getWidth(), imageView.getHeight()).placeholder(R.drawable.panel_smoke_rounded_4dp).error(R.drawable.panel_smoke_rounded_4dp).diskCacheStrategy(DiskCacheStrategy.ALL)).into(imageView);
}
findViewById(R.id.back_btn).setOnClickListener(this);
((TextView) findViewById(R.id.btn_miscall_now)).setOnClickListener(this);
}
}