package com.tencent.mm.plugin.sns.model;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.av;
import com.tencent.mm.g.a.e;
import com.tencent.mm.g.a.rn;
import com.tencent.mm.m.g;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.b.b;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

public final class ao {
    boolean fVW = false;
    boolean fVX = false;
    long qMH = 0;
    private boolean qMI = false;
    int qMJ = 0;
    int qMK = 1440;
    c<rn> qML = new 1(this);
    c qMM = new c<e>() {
        {
            AppMethodBeat.i(36603);
            this.xxI = e.class.getName().hashCode();
            AppMethodBeat.o(36603);
        }

        public final /* synthetic */ boolean a(b bVar) {
            AppMethodBeat.i(36604);
            e eVar = (e) bVar;
            if (eVar.crS.className.equals("SnsTimeLineUI")) {
                ao.this.fVX = eVar.crS.active;
                ab.i("MicroMsg.SnsPreTimelineService", "set isInSnsTimeline:%b", new Object[]{Boolean.valueOf(ao.this.fVX)});
            }
            AppMethodBeat.o(36604);
            return false;
        }
    };
    c qMN = new c<av>() {
        {
            AppMethodBeat.i(36605);
            this.xxI = av.class.getName().hashCode();
            AppMethodBeat.o(36605);
        }

        public final /* synthetic */ boolean a(b bVar) {
            AppMethodBeat.i(36606);
            av avVar = (av) bVar;
            ao.this.fVW = avVar.ctX.ctY;
            ab.i("MicroMsg.SnsPreTimelineService", "set isInChatting:%b", new Object[]{Boolean.valueOf(ao.this.fVW)});
            AppMethodBeat.o(36606);
            return false;
        }
    };

    ao() {
        AppMethodBeat.i(36607);
        AppMethodBeat.o(36607);
    }

    /* Access modifiers changed, original: final */
    public final boolean cof() {
        AppMethodBeat.i(36608);
        String value = g.Nu().getValue("SnsImgPreLoadingTimeLimit");
        ab.i("MicroMsg.SnsPreTimelineService", "preloadLimit:%s", new Object[]{value});
        if (bo.isNullOrNil(value)) {
            AppMethodBeat.o(36608);
            return false;
        }
        try {
            String[] split = value.split("-");
            String[] split2 = split[0].split(":");
            this.qMJ = bo.ank(split2[1]) + (bo.ank(split2[0]) * 60);
            split = split[1].split(":");
            this.qMK = bo.ank(split[1]) + (bo.ank(split[0]) * 60);
            ab.d("MicroMsg.SnsPreTimelineService", "preloadLimit:%d-%d", new Object[]{Integer.valueOf(this.qMJ), Integer.valueOf(this.qMK)});
            AppMethodBeat.o(36608);
            return true;
        } catch (Exception e) {
            AppMethodBeat.o(36608);
            return false;
        }
    }

    public final void start() {
        AppMethodBeat.i(36609);
        a.xxA.c(this.qML);
        a.xxA.c(this.qMM);
        a.xxA.c(this.qMN);
        AppMethodBeat.o(36609);
    }
}
