package xyz.stream.api.viewmodel;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import xyz.stream.api.entity.KidTopicEntity;

/* JADX INFO: loaded from: classes3.dex */
public class KidsViewModel extends ApiViewModel {
    private final ExecutorService executor = Executors.newSingleThreadExecutor();
    public androidx.lifecycle.v liveKidTopic;
    public androidx.lifecycle.v liveKidsList;
    public androidx.lifecycle.v liveTopList;

    /* JADX INFO: Access modifiers changed from: private */
    public static /* synthetic */ void lambda$getKidTopicConfig$0(androidx.lifecycle.w wVar) {
        ArrayList arrayList = new ArrayList();
        KidTopicEntity kidTopicEntity = new KidTopicEntity(1173343, 2, "Toy Story", xyz.stream.api.h.topic_1, null);
        KidTopicEntity kidTopicEntity2 = new KidTopicEntity(1173379, 2, "Cars", xyz.stream.api.h.topic_2, null);
        KidTopicEntity kidTopicEntity3 = new KidTopicEntity(1206490, 2, "Doraemon", xyz.stream.api.h.topic_3, null);
        KidTopicEntity kidTopicEntity4 = new KidTopicEntity(1182372, 2, "Despicable Me", xyz.stream.api.h.topic_4, null);
        KidTopicEntity kidTopicEntity5 = new KidTopicEntity(588, 3, "PAW Patrol", xyz.stream.api.h.topic_5, null);
        KidTopicEntity kidTopicEntity6 = new KidTopicEntity(1173348, 2, null, xyz.stream.api.h.topic_6, Arrays.asList(1173348, 1173383, 1173355, 1173357, 1174269, 1174303, 1173611, 1173610, 1173613, 1173618, 1173616, 1173617));
        KidTopicEntity kidTopicEntity7 = new KidTopicEntity(571, 3, "Peppa Pig", xyz.stream.api.h.topic_7, null);
        KidTopicEntity kidTopicEntity8 = new KidTopicEntity(680, 3, "SpongeBob", xyz.stream.api.h.topic_8, null);
        arrayList.add(kidTopicEntity);
        arrayList.add(kidTopicEntity2);
        arrayList.add(kidTopicEntity3);
        arrayList.add(kidTopicEntity4);
        arrayList.add(kidTopicEntity5);
        arrayList.add(kidTopicEntity6);
        arrayList.add(kidTopicEntity7);
        arrayList.add(kidTopicEntity8);
        wVar.j(arrayList);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static /* synthetic */ void lambda$getKidsList$2(int i10, int i11, androidx.lifecycle.w wVar) {
        ArrayList arrayListD = xyz.stream.api.d.b().d(5, i10, i11);
        if (arrayListD == null) {
            arrayListD = new ArrayList();
        }
        wVar.j(arrayListD);
        xyz.stream.api.d.b().h(5, i10, i11);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static /* synthetic */ void lambda$getTopVideoList$1(androidx.lifecycle.w wVar) {
        ArrayList arrayListE = xyz.stream.api.d.b().e(5);
        if (arrayListE == null) {
            arrayListE = new ArrayList();
        }
        wVar.j(arrayListE);
        xyz.stream.api.d.b().j(5);
    }

    public void getKidTopicConfig() {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveKidTopic = wVar;
        this.executor.execute(new o(0, wVar));
    }

    public void getKidsList(int i10, int i11) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveKidsList = wVar;
        this.executor.execute(new a(i10, i11, 2, wVar));
    }

    public void getTopVideoList() {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveTopList = wVar;
        this.executor.execute(new o(1, wVar));
    }
}
