package com.ironsource;

import android.content.Context;
import android.text.TextUtils;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.WaterfallConfiguration;
import java.util.HashMap;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class xi {

    /* renamed from: a  reason: collision with root package name */
    qd f3222a = new qd();

    public void a(int i) {
        this.f3222a.a(md.Y, Integer.valueOf(i));
    }

    public void a(Context context) {
        this.f3222a.a(context);
    }

    public void a(hf hfVar) {
        try {
            HashMap hashMap = new HashMap();
            hashMap.put(md.x, hfVar.a());
            hashMap.put(md.w, hfVar.b());
            hashMap.put(md.M, hfVar.c());
            this.f3222a.a(hashMap);
        } catch (Exception e) {
            l9.d().a(e);
        }
    }

    public void a(IronSource.AD_UNIT ad_unit, WaterfallConfiguration waterfallConfiguration) {
        JSONObject jSONObject = new JSONObject();
        if (waterfallConfiguration != null) {
            try {
                jSONObject.put(md.c1, waterfallConfiguration.getFloor());
                jSONObject.put(md.d1, waterfallConfiguration.getCeiling());
            } catch (JSONException e) {
                l9.d().a(e);
            }
        }
        if (jSONObject.length() == 0) {
            this.f3222a.a(md.b1, u2.a(ad_unit));
        } else {
            this.f3222a.a(md.b1, jSONObject, u2.a(ad_unit));
        }
    }

    public void a(Boolean bool) {
        this.f3222a.a(md.C0, bool);
    }

    public void a(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        this.f3222a.a(md.x0, str);
    }

    public void a(JSONObject jSONObject) {
        this.f3222a.a(md.s, (Object) jSONObject);
    }

    public void a(boolean z) {
        this.f3222a.a(md.z0, Boolean.valueOf(z));
    }

    public void b(int i) {
        if (i >= 0) {
            this.f3222a.a(md.B0, Integer.valueOf(i));
        }
    }

    public void b(String str) {
        this.f3222a.a(md.t0, str);
    }

    public void b(JSONObject jSONObject) {
        this.f3222a.a(md.N0, (Object) jSONObject);
    }

    public void b(boolean z) {
        this.f3222a.a("gpi", Boolean.valueOf(z));
    }

    public void c(int i) {
        this.f3222a.a(md.W, Integer.valueOf(i));
    }

    public void c(String str) {
        this.f3222a.a(md.v0, str);
    }

    public void d(String str) {
        this.f3222a.a(com.ironsource.mediationsdk.metadata.a.i, str);
    }

    public void e(String str) {
        this.f3222a.a(md.I0, str);
    }

    public void f(String str) {
        this.f3222a.a(md.u, str);
    }

    public void g(String str) {
        this.f3222a.a(md.E, str);
    }

    public void h(String str) {
        this.f3222a.a(md.L0, str);
    }

    public void i(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        this.f3222a.a(md.V, str);
    }
}
