package com.tencent.mm.plugin.appbrand.game.b;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.game.b.a.b;
import com.tencent.mm.plugin.fts.a.a.a;
import com.tencent.mm.plugin.fts.a.c;
import com.tencent.mm.plugin.fts.a.d;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import java.util.List;

class b$b extends a {
    final /* synthetic */ b hqZ;
    private int hrb;
    private List<String> idList;

    public b$b(b bVar, List list) {
        this.hqZ = bVar;
        this.idList = list;
    }

    public final boolean execute() {
        AppMethodBeat.i(130068);
        if (bo.ek(this.idList)) {
            AppMethodBeat.o(130068);
            return false;
        }
        this.hrb = this.idList.size();
        ab.i("MicroMsg.FTS.FTS5SearchMiniGameLogic", "inserted MiniGame info id listSize:%d", new Object[]{Integer.valueOf(this.hrb)});
        this.hqZ.hqX.beginTransaction();
        for (String str : this.idList) {
            this.hqZ.hqX.b(c.mCh, str);
            b As = i.As(str);
            if (As == null || bo.isNullOrNil(As.field_AppName)) {
                ab.i("MicroMsg.FTS.FTS5SearchMiniGameLogic", "inserted miniGame info is null. id:%s", new Object[]{str});
            } else {
                long currentTimeMillis = System.currentTimeMillis();
                String nullAsNil = bo.nullAsNil(As.field_RecordId);
                int hashCode = nullAsNil.hashCode();
                this.hqZ.hqX.a(458752, 1, (long) hashCode, nullAsNil, currentTimeMillis, As.field_AppName);
                this.hqZ.hqX.a(458752, 2, (long) hashCode, nullAsNil, currentTimeMillis, d.aL(As.field_AppName, false));
                this.hqZ.hqX.a(458752, 3, (long) hashCode, nullAsNil, currentTimeMillis, d.aL(As.field_AppName, true));
                ab.v("MicroMsg.FTS.FTS5SearchMiniGameLogic", "inserted MiniGame info id = %s, name = %s", new Object[]{nullAsNil, As.field_AppName});
            }
        }
        this.hqZ.hqX.commit();
        AppMethodBeat.o(130068);
        return true;
    }

    public final String getName() {
        return "InsertMiniGameTask";
    }

    public final String aAo() {
        AppMethodBeat.i(130069);
        String format = String.format("{insertSize: %d}", new Object[]{Integer.valueOf(this.hrb)});
        AppMethodBeat.o(130069);
        return format;
    }
}
