package com.ss.android.ugc.aweme.story.interaction.vm;

import X.0CH;
import X.2cN;
import X.4Dd;
import X.AEI;
import X.AEK;
import X.AEN;
import X.M12;
import X.Mjy;
import X.Mk2;
import X.Mk3;
import X.PhE;
import X.PlI;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.story.api.IStoryCommentListViewModel;
import com.ss.android.ugc.aweme.story.interaction.api.StoryInteractionApi;
import kotlin.h.b.n;

public final class StoryCommentListViewModel extends IStoryCommentListViewModel {
    public static final AEN LJFF = new AEN((byte) 0);
    public final Mjy LJI = new Mjy();
    public final 0CH LJII;

    static {
        Covode.recordClassIndex(117811);
    }

    public final void onCleared() {
        StoryCommentListViewModel.super.onCleared();
        this.LJI.LIZ();
    }

    public StoryCommentListViewModel(0CH r2) {
        M12.LIZ(r2);
        this.LJII = r2;
        this.LIZ = r2;
    }

    public final void LIZ(String str, long j) {
        M12.LIZ(str);
        if (j == 0) {
            this.LIZLLL.put(str, 0);
        } else {
            this.LIZLLL.put(str, 1);
        }
        2cN LIZ = StoryInteractionApi.LIZ.fetchCommentListV2(str, j, 30, (String) null, 1, 2).LIZIZ(PhE.LIZIZ(PlI.LIZJ)).LIZ(Mk2.LIZ(Mk3.LIZ)).LIZ(new AEI(this, str, j), new AEK(this, j, str));
        n.LIZIZ(LIZ, "");
        4Dd.LIZ(LIZ, this.LJI);
    }
}
