package com.ironsource; import android.util.Pair; import com.ironsource.he; import com.ironsource.mediationsdk.logger.IronLog; import java.util.ArrayList; /* loaded from: classes2.dex */ public class ub implements Runnable { private static final String e = "Content-Type"; private static final String f = "application/json"; private he a; String b; String c; ArrayList d; public ub(he heVar, String str, String str2, ArrayList arrayList) { this.a = heVar; this.b = str; this.c = str2; this.d = arrayList; } @Override // java.lang.Runnable public void run() { he.a a; he.a aVar = new he.a(this.d); try { ArrayList arrayList = new ArrayList(); arrayList.add(new Pair("Content-Type", "application/json")); vo b = ff.b(this.c, this.b, arrayList); a = aVar.a(b.a()).a(b.a); } catch (Exception e2) { i9.d().a(e2); IronLog.INTERNAL.error("EventsSender failed to send events - " + e2.getLocalizedMessage()); a = aVar.a(e2 instanceof ym).a(e2); } he heVar = this.a; if (heVar != null) { heVar.a(a); } } }