package com.tencent.mm.plugin.game;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.gt;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.game.model.e;
import com.tencent.mm.plugin.game.model.l;
import com.tencent.mm.plugin.game.model.m;
import com.tencent.mm.plugin.game.model.q;
import com.tencent.mm.sdk.b.b;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.ab;

class c$12 extends c<gt> {
    final /* synthetic */ c mTg;

    c$12(c cVar) {
        this.mTg = cVar;
        AppMethodBeat.i(111153);
        this.xxI = gt.class.getName().hashCode();
        AppMethodBeat.o(111153);
    }

    public final /* synthetic */ boolean a(b bVar) {
        AppMethodBeat.i(111154);
        gt gtVar = (gt) bVar;
        switch (gtVar.cBv.actionCode) {
            case 1:
                e.a(gtVar.cBv.context, gtVar.cBv.appId, gtVar.cBv.messageAction, gtVar.cBv.messageExt, null);
                com.tencent.mm.plugin.game.e.b.a(gtVar.cBv.context, gtVar.cBv.scene, gtVar.cBv.scene, 1, 3, gtVar.cBv.appId, 0, null);
                break;
            case 2:
                int i = gtVar.cBv.scene;
                ab.i("MicroMsg.GameEventListener", "scene = %d, extinfo = %s", new Object[]{Integer.valueOf(i), gtVar.cBv.extMsg});
                Bundle bundle = new Bundle();
                bundle.putInt("game_report_from_scene", i);
                bundle.putCharSequence("game_app_id", gtVar.cBv.appId);
                bundle.putCharSequence("game_report_extra_click_extinfo", r1);
                com.tencent.mm.plugin.game.e.b.a(gtVar.cBv.context, gtVar.cBv.scene, gtVar.cBv.scene, 1, com.tencent.mm.plugin.game.f.c.a(gtVar.cBv.context, gtVar.cBv.appId, null, bundle, gtVar.cBv.scene), gtVar.cBv.appId, 0, null);
                break;
            case 3:
                m.update();
                break;
            case 5:
                int i2 = gtVar.cBv.scene;
                ((com.tencent.mm.plugin.game.a.b) g.K(com.tencent.mm.plugin.game.a.b.class)).bCX();
                l.a(q.bEo(), i2, 2);
                break;
        }
        AppMethodBeat.o(111154);
        return false;
    }
}
