package xyz.stream.api.viewmodel;

import android.content.Context;
import java.util.HashMap;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/* JADX INFO: loaded from: classes3.dex */
public class IptvViewModel extends ApiViewModel {
    public androidx.lifecycle.v liveIptv;
    public androidx.lifecycle.v liveIptvList;

    public void getIptvList(Context context) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveIptvList = wVar;
        xyz.stream.api.o oVarF = xyz.stream.api.o.f();
        n nVar = new n(this, wVar, context, 0);
        oVarF.getClass();
        HashMap map = new HashMap();
        xyz.stream.api.o.g("users/url", oVarF.n(), map, new xyz.stream.api.j(oVarF, "users/url", map, nVar, 28));
    }

    public void optionIptv(Context context, String str, String str2, boolean z10) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveIptv = wVar;
        xyz.stream.api.o oVarF = xyz.stream.api.o.f();
        n nVar = new n(this, wVar, context, 1);
        oVarF.getClass();
        HashMap mapU = defpackage.e.u("name", str, IjkMediaPlayer.OnNativeInvokeListener.ARG_URL, str2);
        mapU.put("is_deleted", Integer.valueOf(z10 ? 1 : 0));
        xyz.stream.api.o.v("users/url", oVarF.n(), xyz.stream.utils.m.a(mapU), new xyz.stream.api.j(oVarF, "users/url", mapU, nVar, 29));
    }
}
