package com.tencent.mm.plugin.wxcredit;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.m;
import com.tencent.mm.plugin.wallet_core.c.q;
import com.tencent.mm.plugin.wallet_core.c.y;
import com.tencent.mm.plugin.wallet_core.model.Bankcard;
import com.tencent.mm.plugin.wallet_core.model.r;
import com.tencent.mm.plugin.wallet_core.model.s;
import com.tencent.mm.plugin.wxcredit.a.h;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.wallet_core.d.g;
import com.tencent.mm.wallet_core.d.i;

class e$3 extends g {
    final /* synthetic */ e uYq;

    e$3(e eVar, MMActivity mMActivity, i iVar) {
        this.uYq = eVar;
        super(mMActivity, iVar);
    }

    public final boolean c(int i, int i2, String str, m mVar) {
        AppMethodBeat.i(48629);
        if (i != 0 || i2 != 0) {
            AppMethodBeat.o(48629);
            return false;
        } else if (mVar instanceof com.tencent.mm.plugin.wxcredit.a.g) {
            String str2 = ((com.tencent.mm.plugin.wxcredit.a.g) mVar).cIe;
            if (!bo.isNullOrNil(str2)) {
                e.q(this.uYq).putString("key_bank_username", str2);
            }
            this.uYq.a(this.hwd, 0, e.r(this.uYq));
            AppMethodBeat.o(48629);
            return true;
        } else if (mVar instanceof h) {
            this.uYq.a(this.hwd, 0, e.s(this.uYq));
            AppMethodBeat.o(48629);
            return true;
        } else if (mVar instanceof q) {
            if (r.cPI().cQg()) {
                this.Agm.a(new y(), true, 1);
                AppMethodBeat.o(48629);
                return true;
            }
            this.uYq.a(this.hwd, 0, e.t(this.uYq));
            AppMethodBeat.o(48629);
            return true;
        } else if (mVar instanceof y) {
            this.Agm.a(new com.tencent.mm.plugin.wxcredit.a.g(e.u(this.uYq).getString("key_verify_code"), e.v(this.uYq).getString("KEY_SESSION_KEY"), e.w(this.uYq).getString("key_pwd1"), r.cPI().cQL(), e.x(this.uYq).getString("key_bank_type")), true, 1);
            AppMethodBeat.o(48629);
            return true;
        } else {
            AppMethodBeat.o(48629);
            return false;
        }
    }

    public final boolean p(Object... objArr) {
        AppMethodBeat.i(48630);
        String str = (String) objArr[0];
        e.y(this.uYq).putString("key_verify_code", str);
        s sVar;
        if (r.cPI().cQg()) {
            if (!e.z(this.uYq).getBoolean("key_need_bind_deposit", true) || e.A(this.uYq).getBoolean("key_is_bank_user")) {
                this.Agm.a(new com.tencent.mm.plugin.wxcredit.a.g(str, e.B(this.uYq).getString("KEY_SESSION_KEY"), e.C(this.uYq).getString("key_pwd1"), e.D(this.uYq).getString("key_bind_serial"), e.E(this.uYq).getString("key_bank_type")), true, 1);
            } else {
                sVar = (s) objArr[1];
                sVar.flag = "2";
                this.Agm.a(new q(sVar), true, 1);
            }
        } else if (e.F(this.uYq).getBoolean("key_is_bank_user", false)) {
            e.G(this.uYq).putString("key_verify_code", str);
            this.Agm.a(new h(str, e.H(this.uYq).getString("KEY_SESSION_KEY"), e.I(this.uYq).getString("key_pwd1"), e.J(this.uYq).getString("key_bind_serial"), e.K(this.uYq).getString("key_bank_type")), true, 1);
        } else {
            sVar = (s) objArr[1];
            sVar.flag = "1";
            this.Agm.a(new q(sVar), true, 1);
        }
        AppMethodBeat.o(48630);
        return true;
    }

    public final /* synthetic */ CharSequence Au(int i) {
        AppMethodBeat.i(48631);
        if (e.L(this.uYq).getBoolean("key_is_bank_user", false)) {
            Bankcard bankcard = (Bankcard) e.M(this.uYq).getParcelable("key_bankcard");
            String string = this.hwd.getString(2131305410, new Object[]{bankcard.field_bankName, bankcard.field_bankName, e.N(this.uYq).getString("key_mobile")});
            AppMethodBeat.o(48631);
            return string;
        }
        CharSequence string2 = this.hwd.getString(2131305411, new Object[]{e.O(this.uYq).getString("key_mobile")});
        AppMethodBeat.o(48631);
        return string2;
    }
}
