package com.ss.android.ugc.aweme.comment.viewmodel;

import X.0CH;
import X.2cN;
import X.4Dd;
import X.A65;
import X.A68;
import X.A6J;
import X.A6U;
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.comment.barrage.BarrageCommentAndLikeApi;
import kotlin.h.b.n;

public final class CommentListViewModel extends ICommentListViewModel {
    public static final A6J LIZJ = new A6J((byte) 0);
    public final Mjy LJ = new Mjy();
    public final 0CH LJFF;

    static {
        Covode.recordClassIndex(57607);
    }

    public final void onCleared() {
        CommentListViewModel.super.onCleared();
        this.LJ.LIZ();
    }

    public CommentListViewModel(0CH r2) {
        M12.LIZ(r2);
        this.LJFF = r2;
        this.LIZ = r2;
    }

    public final void LIZ(String str, long j) {
        M12.LIZ(str);
        if (str.length() == 0) {
            A6U.LIZJ("StoryCommentListViewModel", "fetchCommentList awemeId is empty");
            return;
        }
        2cN LIZ = BarrageCommentAndLikeApi.LIZ.fetchCommentList(str, j, 20, (String) null, 1, 2, 1).LIZIZ(PhE.LIZIZ(PlI.LIZJ)).LIZ(Mk2.LIZ(Mk3.LIZ)).LIZ(new A65(this, j, str), new A68(this, j, str));
        n.LIZIZ(LIZ, "");
        4Dd.LIZ(LIZ, this.LJ);
    }
}
