package com.ss.android.ugc.aweme.notification.model;

import X.2kR;
import X.C3104E1k;
import X.E1H;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.notice.repo.list.bean.NoticeItems;
import com.ss.android.ugc.aweme.notice.repo.list.bean.NoticeListsResponse;
import com.ss.android.ugc.aweme.notification.api.MusNotificationApiManager;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;

public final class MusNewNotificationModel$loadMoreList$1<V> implements Callable {
    public final /* synthetic */ int $noticeGroup;
    public final /* synthetic */ List $notices;
    public final /* synthetic */ int $requestScenario;

    static {
        Covode.recordClassIndex(95610);
    }

    public MusNewNotificationModel$loadMoreList$1(List list, int i, int i2) {
        this.$notices = list;
        this.$requestScenario = i;
        this.$noticeGroup = i2;
    }

    public final Object call() {
        List list;
        NoticeListsResponse LIZ = MusNotificationApiManager.LIZ((List<2kR>) this.$notices, this.$requestScenario);
        if (E1H.LIZ && (this.$noticeGroup == C3104E1k.LIZ.LIZ() || this.$noticeGroup == 37)) {
            List<NoticeItems> notices = LIZ.getNotices();
            if (notices != null) {
                ArrayList arrayList = new ArrayList();
                for (T next : notices) {
                    if (((NoticeItems) next).getGroup() != 210) {
                        arrayList.add(next);
                    }
                }
                list = arrayList;
            } else {
                list = null;
            }
            LIZ.setNotices(list);
        }
        return LIZ;
    }
}
