package xyz.stream.api.viewmodel;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;
import xyz.stream.api.entity.TagVideoEntity;

/* JADX INFO: loaded from: classes3.dex */
public final class x implements xyz.stream.api.live.f {

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

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

    public x(AtomicReference atomicReference, CountDownLatch countDownLatch) {
        this.f36017a = atomicReference;
        this.f36018b = countDownLatch;
    }

    @Override // xyz.stream.api.live.f
    public final void a(List list) {
        ArrayList arrayList = new ArrayList();
        if (list != null && !list.isEmpty()) {
            TagVideoEntity tagVideoEntity = new TagVideoEntity();
            tagVideoEntity.setTagId(4);
            tagVideoEntity.setChannelList(list);
            arrayList.add(tagVideoEntity);
        }
        this.f36017a.set(arrayList);
        this.f36018b.countDown();
    }
}
