正在查看: Easycash v3.75.13 应用的 LenderGetPrivyIdActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Easycash v3.75.13 应用的 LenderGetPrivyIdActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fintopia.lender.module.sign;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import butterknife.BindView;
import com.airbnb.lottie.LottieAnimationView;
import com.fintopia.lender.R;
import com.fintopia.lender.module.baseui.LenderCommonActivity;
import com.fintopia.lender.module.network.ILenderApiRoutes;
import com.fintopia.lender.module.network.LenderResponseCode;
import com.fintopia.lender.module.orders.models.TransferType;
import com.fintopia.lender.module.sign.LenderGetPrivyIdActivity;
import com.fintopia.lender.module.sign.models.SignatureAccountProviderType;
import com.fintopia.lender.widget.LenderSingleButtonDialog;
import com.lingyue.idnbaselib.framework.lifecycle.LifecycleEvent;
import com.lingyue.idnbaselib.model.IdnBaseResult;
import com.lingyue.idnbaselib.model.IdnObserver;
import com.lingyue.idnbaselib.model.PrivyIdRegisterResponse;
import com.lingyue.idnbaselib.model.sign.BizCheckResultInfoV3;
import com.sensorsdata.analytics.android.autotrack.aop.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.veda.android.bananalibrary.net.ICallBack;
import com.yangqianguan.statistics.AutoTrackHelper;
import io.reactivex.disposables.Disposable;
import java.io.Serializable;
public class LenderGetPrivyIdActivity extends LenderCommonActivity {
@BindView(5079)
LottieAnimationView lavRunCycle;
@BindView(5899)
TextView tvTitle;
private BizCheckResultInfoV3 f174u;
private String f175v;
private TransferType f176w;
class AnonymousClass1 extends IdnObserver<PrivyIdRegisterResponse> {
AnonymousClass1(ICallBack iCallBack) {
super(iCallBack);
}
@SensorsDataInstrumented
public static void c(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
SensorsDataAutoTrackHelper.trackDialog(dialogInterface, i);
AutoTrackHelper.trackViewOnClick(dialogInterface, i);
}
public void d(DialogInterface dialogInterface) {
LenderGetPrivyIdActivity.this.finish();
}
public void onError(Throwable th, PrivyIdRegisterResponse privyIdRegisterResponse) {
super.onError(th, privyIdRegisterResponse);
IdnBaseResult.Status status = ((IdnBaseResult) privyIdRegisterResponse).status;
if (status.code == LenderResponseCode.SIGNATURE_THIRD_PARTY_RESPONSE_ERROR.code) {
LenderGetPrivyIdActivity.this.tvTitle.setText(status.detail);
return;
}
LenderSingleButtonDialog i = LenderSingleButtonDialog.d(LenderGetPrivyIdActivity.this).g(((IdnBaseResult) privyIdRegisterResponse).status.detail).e(R.string.dialog_ok).i(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i2) {
LenderGetPrivyIdActivity.AnonymousClass1.c(dialogInterface, i2);
}
});
i.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public final void onDismiss(DialogInterface dialogInterface) {
LenderGetPrivyIdActivity.AnonymousClass1.this.d(dialogInterface);
}
});
i.show();
}
public void onSuccess(PrivyIdRegisterResponse privyIdRegisterResponse) {
?? r0 = LenderGetPrivyIdActivity.this;
LenderSignLoadingActivity.startLenderSignLoadingActivity(r0, privyIdRegisterResponse.body.signatureAccount, ((LenderGetPrivyIdActivity) r0).f174u, LenderGetPrivyIdActivity.this.f176w);
LenderGetPrivyIdActivity.this.finish();
}
protected boolean superShowErrorToast() {
return false;
}
}
private void M() {
ILenderApiRoutes iLenderApiRoutes = (ILenderApiRoutes) this.apiHelper.a();
String name = SignatureAccountProviderType.PRIVY.name();
String str = this.f175v;
BizCheckResultInfoV3 bizCheckResultInfoV3 = this.f174u;
iLenderApiRoutes.z(name, str, bizCheckResultInfoV3.businessId, bizCheckResultInfoV3.businessType, bizCheckResultInfoV3.checkType).a(new AnonymousClass1(this));
}
public static void startLenderGetPrivyIdActivity(Activity activity, String str, BizCheckResultInfoV3 bizCheckResultInfoV3, TransferType transferType) {
Intent intent = new Intent(activity, (Class<?>) LenderGetPrivyIdActivity.class);
intent.putExtra("privyIdEmail", str);
intent.putExtra("orderCheckInfo", (Serializable) bizCheckResultInfoV3);
intent.putExtra("transferType", transferType == null ? null : transferType.name());
activity.startActivity(intent);
}
@Override
protected void G(@NonNull Bundle bundle) {
super.G(bundle);
bundle.putString("privyIdEmail", this.f175v);
bundle.putSerializable("orderCheckInfo", this.f174u);
TransferType transferType = this.f176w;
bundle.putString("transferType", transferType == null ? null : transferType.name());
}
@Override
public int getLayoutID() {
return R.layout.lender_activity_get_privy_id;
}
@Override
protected void onPause() {
super.onPause();
if (this.lavRunCycle.p()) {
this.lavRunCycle.h();
}
}
@Override
public void onResume() {
super.onResume();
if (this.lavRunCycle.p()) {
return;
}
this.lavRunCycle.r();
}
@Override
public Disposable runOnActiveEvent(Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.a(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnCreated(@NonNull Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.b(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnDestroy(@NonNull Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.c(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnEvent(@NonNull LifecycleEvent lifecycleEvent, @Nullable Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.d(this, lifecycleEvent, runnable);
}
@Override
public Disposable runOnEvents(@NonNull LifecycleEvent[] lifecycleEventArr, @Nullable Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.e(this, lifecycleEventArr, runnable);
}
@Override
protected void w() {
super.w();
M();
}
@Override
protected void y(@NonNull Bundle bundle) {
super.y(bundle);
this.f175v = bundle.getString("privyIdEmail");
this.f174u = bundle.getSerializable("orderCheckInfo");
this.f176w = TransferType.fromName(bundle.getString("transferType"));
}
}