package com.tencent.mm.plugin.brandservice.ui.timeline;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.aj.z;
import com.tencent.mm.storage.q;
import com.tencent.mm.storage.r.a;
import com.tencent.mm.storage.r.b;
import com.tencent.mm.storage.r.c;
import com.tencent.mm.storage.t;
import java.util.List;

class e$1 implements c {
    final /* synthetic */ e jNU;

    e$1(e eVar) {
        this.jNU = eVar;
    }

    public final void a(Object obj, a aVar) {
        AppMethodBeat.i(14147);
        if (aVar != null) {
            if (aVar.xId == b.xIf && aVar.jOa != null) {
                e.a(this.jNU).add(0, aVar.jOa);
            } else if (aVar.xId == b.xIg) {
                e eVar = this.jNU;
                q aWp = eVar.aWp();
                if (aWp != null) {
                    eVar.iKa.clear();
                    List list = eVar.iKa;
                    t aeY = z.aeY();
                    long j = aWp.field_createTime;
                    list.addAll(t.p(aeY.fni.query("BizTimeLineSingleMsgInfo", null, "createTime>=?", new String[]{String.valueOf(j)}, null, null, "createTime DESC")));
                }
            }
        }
        this.jNU.notifyDataSetChanged();
        AppMethodBeat.o(14147);
    }
}
