package xyz.stream.api.viewmodel;

import java.util.List;

/* JADX INFO: loaded from: classes3.dex */
public class HistoryViewModel extends ApiViewModel {
    public androidx.lifecycle.v liveAllRecord;
    public androidx.lifecycle.v liveHistory;

    /* JADX INFO: Access modifiers changed from: private */
    public static /* synthetic */ void lambda$getVideoRecord$0(androidx.lifecycle.w wVar, List list) {
        if (list == null || list.isEmpty()) {
            u.a.f(wVar);
        } else {
            wVar.j(list);
        }
    }

    public void getLiveHistory() {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveHistory = wVar;
        re.a aVarO = xyz.stream.api.live.g.o();
        if (aVarO == null) {
            u.a.f(wVar);
        } else {
            aVarO.m(new b(this, wVar, 5));
        }
    }

    public void getVideoRecord() {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveAllRecord = wVar;
        xyz.stream.api.database.q qVarA = xyz.stream.api.database.q.a();
        androidx.core.app.e eVar = new androidx.core.app.e(wVar, 3);
        qVarA.getClass();
        xyz.stream.api.database.q.d(false, eVar);
    }
}
