TikTok.apk(点击下载) / MallMainRecommendPreload.java


package com.ss.android.ugc.aweme.ecommerce.mall.preload;

import X.AbstractC59502NXv;
import X.AnonymousClass0W6;
import X.AnonymousClass1IM;
import X.C21090sc;
import X.C88643eH;
import android.os.Bundle;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.app.api.Api;
import com.ss.android.ugc.aweme.ecommerce.mall.bean.MallMainRecommendResponse;
import com.ss.android.ugc.aweme.ecommerce.mall.repository.api.MallApiWithPreload;
import java.util.concurrent.Future;

public final class MallMainRecommendPreload implements AbstractC59502NXv<MallApiWithPreload, Future<MallMainRecommendResponse>> {
    public static final C88643eH Companion = new C88643eH((byte) 0);

    static {
        Covode.recordClassIndex(62159);
    }

    @Override // X.NY5
    public final boolean enable(Bundle bundle) {
        return true;
    }

    @Override // X.AbstractC59502NXv
    public final AnonymousClass0W6 getPreloadStrategy(Bundle bundle) {
        return new AnonymousClass0W6(30000, Api.LIZLLL, true);
    }

    @Override // X.AbstractC59502NXv
    public final boolean handleException(Exception exc) {
        C21090sc.LIZ(exc);
        exc.printStackTrace();
        return true;
    }

    @Override // X.AbstractC59502NXv
    public final Future<MallMainRecommendResponse> preload(Bundle bundle, AnonymousClass1IM<? super Class<MallApiWithPreload>, ? extends MallApiWithPreload> r10) {
        C21090sc.LIZ(r10);
        return ((MallApiWithPreload) r10.invoke(MallApiWithPreload.class)).getMallMainRecommendPreload("https://oec-api.tiktokv.com/api/v1/shop/recommend/feed/preload", 10, "ttmall_homepage", true, 0, true, true);
    }
}