package com.tencent.mm.plugin.shake.b;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.e;
import com.tencent.mm.model.bz.a;
import com.tencent.mm.platformtools.aa;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.sdk.platformtools.br;
import java.util.Map;

class m$13 implements a {
    final /* synthetic */ m qsj;

    m$13(m mVar) {
        this.qsj = mVar;
    }

    public final void a(e.a aVar) {
        AppMethodBeat.i(24489);
        m.cjZ();
        if (m.cjW() != null) {
            m.cjZ();
            m.cjW();
            String a = aa.a(aVar.eAB.vED);
            ab.v("MicroMsg.ShakeMsgMgr", "func[onResvMsg] content:".concat(String.valueOf(a)));
            if (bo.isNullOrNil(a)) {
                ab.d("MicroMsg.ShakeMsgMgr", "func[onResvMsg] Msg content empty");
                AppMethodBeat.o(24489);
                return;
            }
            Map z = br.z(a, "sysmsg");
            int i = bo.getInt((String) z.get(".sysmsg.shake.$type"), 0);
            switch (i) {
                case 1:
                    f fVar = new f();
                    i = bo.getInt((String) z.get(".sysmsg.shake.shaketv.msgtype"), 0);
                    if (i == 0) {
                        fVar.field_type = 1;
                        fVar.field_subtype = i;
                        fVar.field_svrid = aVar.eAB.ptF;
                        fVar.field_createtime = bo.anT();
                        fVar.field_tag = (String) z.get(".sysmsg.shake.shaketv.jumpurl");
                        fVar.field_status = 0;
                        fVar.field_title = (String) z.get(".sysmsg.shake.shaketv.title");
                        fVar.field_thumburl = (String) z.get(".sysmsg.shake.shaketv.iconurl");
                        fVar.field_desc = (String) z.get(".sysmsg.shake.shaketv.desc");
                        fVar.field_reserved1 = bo.nullAsNil((String) z.get(".sysmsg.shake.shaketv.pid"));
                        m.cjT().a(fVar);
                        AppMethodBeat.o(24489);
                        return;
                    }
                    ab.w("MicroMsg.ShakeMsgMgr", "Unknown subType:".concat(String.valueOf(i)));
                    AppMethodBeat.o(24489);
                    return;
                default:
                    ab.d("MicroMsg.ShakeMsgMgr", "Unrecognized type :".concat(String.valueOf(i)));
                    AppMethodBeat.o(24489);
                    return;
            }
        }
        ab.w("MicroMsg.SubCoreShake", "func[onRecieveMsg] getShakeMsgMgr null");
        AppMethodBeat.o(24489);
    }
}
