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

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.fts.a.a.a;
import com.tencent.mm.storage.ad;

class a$i extends a {
    final /* synthetic */ a mFK;
    private boolean mGf;
    private String username;

    public a$i(a aVar, String str) {
        this.mFK = aVar;
        this.username = str;
    }

    public final boolean execute() {
        AppMethodBeat.i(136680);
        if (a.b(this.mFK).containsKey(this.username)) {
            this.mGf = true;
            AppMethodBeat.o(136680);
        } else if (a.c(this.mFK).add(this.username)) {
            ad MU = a.d(this.mFK).MU(this.username);
            if (MU == null || this.mFK.H(MU)) {
                com.tencent.mm.plugin.fts.c.a a = a.a(this.mFK);
                String str = this.username;
                a.mBZ.bindLong(1, 2);
                a.mBZ.bindString(2, str);
                a.mBZ.bindLong(3, 0);
                a.mBZ.execute();
                AppMethodBeat.o(136680);
            } else {
                this.mGf = true;
                AppMethodBeat.o(136680);
            }
        } else {
            this.mGf = true;
            AppMethodBeat.o(136680);
        }
        return true;
    }

    public final String aAo() {
        AppMethodBeat.i(136681);
        String format = String.format("{username: %s isSkipped: %b}", new Object[]{this.username, Boolean.valueOf(this.mGf)});
        AppMethodBeat.o(136681);
        return format;
    }

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