正在查看: Mabilis Cash v1.19.4 应用的 PHCashboxLiveCheckPreviewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mabilis Cash v1.19.4 应用的 PHCashboxLiveCheckPreviewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.loans.mabiliscash.auth.living.preview;
import android.app.Activity;
import android.content.Intent;
import androidx.appcompat.widget.Toolbar;
import com.fintopia.face.models.FaceIdCard;
import com.fintopia.face.models.event.LiveDetectionEvent;
import com.fintopia.libCommon.common.CommonObserver;
import com.loans.mabiliscash.R;
import com.loans.mabiliscash.appconfig.AppSwitchConfigKey;
import com.loans.mabiliscash.auth.living.PHModifyPhoneNumberLiveRecognitionResultActivity;
import com.loans.mabiliscash.auth.living.PHVerifyLivingV5ResultActivity;
import com.loans.mabiliscash.databinding.ActivityLivenessRecognitionPreviewBinding;
import com.loans.mabiliscash.models.PaymentMethodInfo;
import com.loans.mabiliscash.models.response.PHBooleanResponse;
import com.veda.android.bananalibrary.infrastructure.BaseActivity;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import java.io.Serializable;
import java.math.BigDecimal;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata
public final class PHCashboxLiveCheckPreviewActivity extends PHBaseLiveCheckPreviewActivity {
@NotNull
public static final Companion Companion = new Companion(null);
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final void a(@NotNull Activity activity, @NotNull BigDecimal bigDecimal, @NotNull PaymentMethodInfo paymentMethodInfo) {
Intrinsics.checkNotNullParameter(activity, "activity");
Intrinsics.checkNotNullParameter(bigDecimal, "canWithdrawBalanceValue");
Intrinsics.checkNotNullParameter(paymentMethodInfo, "paymentMethod");
Intent intent = new Intent(activity, (Class<?>) PHCashboxLiveCheckPreviewActivity.class);
intent.putExtra("EXTRA_CAH_WITHDRAW_BALANCE_VALUE", bigDecimal);
intent.putExtra("extra_payment_method", paymentMethodInfo);
activity.startActivityForResult(intent, 100348);
}
private Companion() {
}
}
@Override
@Nullable
protected String d0() {
return "";
}
@Override
@NotNull
protected String e0() {
return "WALLET_WITHDRAW";
}
@Override
@NotNull
protected String f0() {
return AppSwitchConfigKey.PHI_NOT_AUTH_LIVING_VERIFY_AB;
}
@Override
protected void n0(@NotNull FaceIdCard faceIdCard) {
Intrinsics.checkNotNullParameter(faceIdCard, "faceIdCard");
if (Intrinsics.a("FACEPP_V5", faceIdCard.source)) {
PHVerifyLivingV5ResultActivity.Companion.a(this, faceIdCard, e0());
} else {
PHModifyPhoneNumberLiveRecognitionResultActivity.start(this, faceIdCard, "WALLET_WITHDRAW");
}
}
@Override
protected void o() {
super.o();
Toolbar toolbar = ((BaseActivity) this).f;
if (toolbar != null) {
toolbar.setVisibility(0);
}
((ActivityLivenessRecognitionPreviewBinding) this.o).c.setVisibility(8);
((ActivityLivenessRecognitionPreviewBinding) this.o).e.b.setVisibility(8);
((ActivityLivenessRecognitionPreviewBinding) this.o).f.setVisibility(0);
((ActivityLivenessRecognitionPreviewBinding) this.o).i.setText(R.string.cashbox_withdraw_live_check_hint);
}
@Override
protected void o0(@Nullable LiveDetectionEvent liveDetectionEvent) {
setResult(-1);
finish();
}
@Override
protected void p0(@NotNull final Function0<Unit> function0) {
Intrinsics.checkNotNullParameter(function0, "checkCallback");
Serializable serializableExtra = getIntent().getSerializableExtra("EXTRA_CAH_WITHDRAW_BALANCE_VALUE");
BigDecimal bigDecimal = serializableExtra instanceof BigDecimal ? (BigDecimal) serializableExtra : null;
Serializable serializableExtra2 = getIntent().getSerializableExtra("extra_payment_method");
PaymentMethodInfo paymentMethodInfo = serializableExtra2 instanceof PaymentMethodInfo ? (PaymentMethodInfo) serializableExtra2 : null;
if (bigDecimal != null && paymentMethodInfo != null) {
this.apiHelper.a().R(bigDecimal, paymentMethodInfo.paymentMethod, paymentMethodInfo.credentialId).w(AndroidSchedulers.a()).a(new CommonObserver<PHBooleanResponse>() {
{
super(PHCashboxLiveCheckPreviewActivity.this);
}
public void c(PHBooleanResponse pHBooleanResponse) {
if (pHBooleanResponse == null || !pHBooleanResponse.body) {
PHCashboxLiveCheckPreviewActivity.this.dismissLoadingDialog();
} else {
function0.invoke();
}
}
public void onSubscribe(Disposable disposable) {
Intrinsics.checkNotNullParameter(disposable, "d");
super/*com.veda.android.bananalibrary.net.DefaultObserver*/.onSubscribe(disposable);
PHCashboxLiveCheckPreviewActivity.this.showLoadingDialog();
}
});
} else {
dismissLoadingDialog();
finish();
}
}
}