package te;

import xyz.stream.api.entity.LiveCategoryEntity;
import xyz.stream.api.entity.LiveChannelEntity;
import xyz.stream.view.UiUtils;
import xyz.stream.view.refresh.layout.api.RefreshLayout;
import xyz.stream.view.refresh.layout.listener.OnRefreshListener;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class j implements OnRefreshListener, u4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f33060a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ n f33061b;

    public /* synthetic */ j(n nVar, int i10) {
        this.f33060a = i10;
        this.f33061b = nVar;
    }

    @Override // xyz.stream.view.refresh.layout.listener.OnRefreshListener
    public final void onRefresh(RefreshLayout refreshLayout) {
        n nVar = this.f33061b;
        UiUtils.showProgressDialog(nVar.f33070c);
        nVar.f33075h.clear();
        nVar.f33077j.notifyDataSetChanged();
        re.a.u().f(true, new oe.f(nVar, 3));
    }

    @Override // u4.c
    public final boolean test(Object obj) {
        int i10 = this.f33060a;
        n nVar = this.f33061b;
        switch (i10) {
            case 1:
                nVar.getClass();
                if (((LiveCategoryEntity) obj).getCategoryId().intValue() == nVar.f33072e) {
                }
                break;
            case 2:
                nVar.getClass();
                if (((LiveChannelEntity) obj).getId().intValue() == nVar.f33071d) {
                }
                break;
            default:
                nVar.getClass();
                if (((LiveChannelEntity) obj).getId().intValue() == nVar.f33071d) {
                }
                break;
        }
        return true;
    }
}
