package vf;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class k implements sd.l {

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

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

    public /* synthetic */ k(int i10, Integer num) {
        this.f33977a = i10;
        this.f33978b = num;
    }

    @Override // sd.l
    public final Object invoke(Object obj) throws Exception {
        k3.c cVarJ;
        k3.c cVarJ2;
        int i10 = this.f33977a;
        Integer num = this.f33978b;
        switch (i10) {
            case 0:
                cVarJ = ((k3.a) obj).J("DELETE FROM iptv_entity WHERE server_id = ?");
                try {
                    if (num == null) {
                        cVarJ.d(1);
                    } else {
                        cVarJ.a(1, num.intValue());
                    }
                    cVarJ.G();
                    cVarJ.close();
                    return null;
                } finally {
                    cVarJ.close();
                }
            case 1:
                k3.c cVarJ3 = ((k3.a) obj).J("DELETE FROM live_favorite WHERE group_id = ?");
                try {
                    if (num == null) {
                        cVarJ3.d(1);
                    } else {
                        cVarJ3.a(1, num.intValue());
                    }
                    cVarJ3.G();
                    cVarJ3.close();
                    return null;
                } finally {
                    cVarJ3.close();
                }
            case 2:
                cVarJ2 = ((k3.a) obj).J("DELETE FROM live_history WHERE group_id = ?");
                try {
                    if (num == null) {
                        cVarJ2.d(1);
                    } else {
                        cVarJ2.a(1, num.intValue());
                    }
                    cVarJ2.G();
                    cVarJ2.close();
                    return null;
                } finally {
                    cVarJ2.close();
                }
            case 3:
                cVarJ = ((k3.a) obj).J("DELETE FROM play_record WHERE series_id = ?");
                try {
                    if (num == null) {
                        cVarJ.d(1);
                    } else {
                        cVarJ.a(1, num.intValue());
                    }
                    cVarJ.G();
                    cVarJ.close();
                    return null;
                } finally {
                }
            default:
                cVarJ2 = ((k3.a) obj).J("DELETE FROM server_entity WHERE id = ?");
                try {
                    if (num == null) {
                        cVarJ2.d(1);
                    } else {
                        cVarJ2.a(1, num.intValue());
                    }
                    cVarJ2.G();
                    cVarJ2.close();
                    return null;
                } finally {
                }
        }
    }
}
