package xyz.stream.api.viewmodel;

import android.content.Context;
import java.util.ArrayList;
import java.util.concurrent.Executors;
import xyz.stream.api.entity.VideoCollectionEntity;

/* JADX INFO: loaded from: classes3.dex */
public class AdultViewModel extends ApiViewModel {
    public androidx.lifecycle.v liveCollectionList;
    public androidx.lifecycle.v liveVideos;
    private androidx.lifecycle.w videosLiveData;

    /* JADX INFO: Access modifiers changed from: private */
    public static /* synthetic */ void lambda$getCollectionList$0(int i10, int i11, androidx.lifecycle.w wVar) {
        ArrayList arrayListD = xyz.stream.api.d.b().d(9, i10, i11);
        if (i10 == 1 && arrayListD != null && !arrayListD.isEmpty()) {
            ((VideoCollectionEntity) arrayListD.get(0)).setShowMore(true);
        }
        if (arrayListD == null) {
            arrayListD = new ArrayList();
        }
        wVar.j(arrayListD);
        xyz.stream.api.d.b().h(9, i10, i11);
    }

    public void getCollectionList(int i10, int i11) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveCollectionList = wVar;
        Executors.newSingleThreadExecutor().execute(new a(i10, i11, 0, wVar));
    }

    public void getVideoList(Context context, int i10, int i11) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.videosLiveData = wVar;
        this.liveVideos = wVar;
        xyz.stream.api.o.f().t(i10, i11, 2, 0, null, null, String.valueOf(100), "updated_at", null, null, null, null, new b(this, context, 0));
    }
}
