package com.tencent.mm.plugin.wallet.balance;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.m;
import com.tencent.mm.plugin.wallet.pay.a.a.b;
import com.tencent.mm.plugin.wallet_core.id_verify.util.RealnameGuideHelper;
import com.tencent.mm.plugin.wallet_core.model.Authen;
import com.tencent.mm.plugin.wallet_core.model.Bankcard;
import com.tencent.mm.plugin.wallet_core.model.Orders;
import com.tencent.mm.pluginsdk.wallet.PayInfo;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.wallet_core.a;
import com.tencent.mm.wallet_core.d.g;
import com.tencent.mm.wallet_core.d.i;

class b$2 extends g {
    final /* synthetic */ b teV;

    b$2(b bVar, MMActivity mMActivity, i iVar) {
        this.teV = bVar;
        super(mMActivity, iVar);
    }

    public final boolean c(int i, int i2, String str, m mVar) {
        boolean z = false;
        AppMethodBeat.i(45201);
        if (i == 0 && i2 == 0 && (mVar instanceof b)) {
            b bVar = (b) mVar;
            b.b(this.teV).putString("kreq_token", bVar.token);
            b.c(this.teV).putParcelable("key_authen", bVar.toh);
            Bundle d = b.d(this.teV);
            String str2 = "key_need_verify_sms";
            if (!bVar.tof) {
                z = true;
            }
            d.putBoolean(str2, z);
            RealnameGuideHelper realnameGuideHelper = bVar.oYc;
            if (realnameGuideHelper != null) {
                b.e(this.teV).putParcelable("key_realname_guide_helper", realnameGuideHelper);
            }
            if (bVar.too != null) {
                b.f(this.teV).putString("key_fetch_result_show_info", bVar.too.toString());
            }
            a.j(this.hwd, b.g(this.teV));
            this.hwd.finish();
            AppMethodBeat.o(45201);
            return true;
        }
        AppMethodBeat.o(45201);
        return false;
    }

    public final boolean p(Object... objArr) {
        AppMethodBeat.i(45202);
        Bankcard bankcard = (Bankcard) b.h(this.teV).getParcelable("key_bankcard");
        b.i(this.teV).putString("key_pwd1", (String) objArr[0]);
        b.j(this.teV).putString("key_mobile", bankcard.field_mobile);
        Authen authen = new Authen();
        authen.bJt = 3;
        authen.twc = (String) objArr[0];
        authen.pbo = bankcard.field_bindSerial;
        authen.pbn = bankcard.field_bankcardType;
        authen.pGr = (PayInfo) b.k(this.teV).getParcelable("key_pay_info");
        authen.twk = bankcard.field_arrive_type;
        this.Agm.a(new b(authen, (Orders) b.l(this.teV).getParcelable("key_orders")), true, 1);
        AppMethodBeat.o(45202);
        return true;
    }
}
