- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
68 lines
1.9 KiB
Java
68 lines
1.9 KiB
Java
package com.ironsource;
|
|
|
|
import android.text.TextUtils;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.utils.IronSourceUtils;
|
|
import java.util.ArrayList;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
abstract class e {
|
|
private final String a = "eventId";
|
|
private final String b = "timestamp";
|
|
private final String c = "InterstitialEvents";
|
|
private final String d = "events";
|
|
private final String e = "events";
|
|
JSONObject f;
|
|
int g;
|
|
private String h;
|
|
|
|
private String a(int i) {
|
|
return i != 2 ? "events" : "InterstitialEvents";
|
|
}
|
|
|
|
public abstract String a();
|
|
|
|
public abstract String a(ArrayList<kb> arrayList, JSONObject jSONObject);
|
|
|
|
public String a(JSONArray jSONArray) {
|
|
try {
|
|
if (this.f != null) {
|
|
JSONObject jSONObject = new JSONObject(this.f.toString());
|
|
jSONObject.put("timestamp", IronSourceUtils.getTimestamp());
|
|
jSONObject.put(a(this.g), jSONArray);
|
|
return jSONObject.toString();
|
|
}
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public JSONObject a(kb kbVar) {
|
|
try {
|
|
String a = kbVar.a();
|
|
JSONObject jSONObject = !TextUtils.isEmpty(a) ? new JSONObject(a) : new JSONObject();
|
|
jSONObject.put("eventId", kbVar.c());
|
|
jSONObject.put("timestamp", kbVar.d());
|
|
return jSONObject;
|
|
} catch (JSONException e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public void a(String str) {
|
|
this.h = str;
|
|
}
|
|
|
|
public String b() {
|
|
return TextUtils.isEmpty(this.h) ? a() : this.h;
|
|
}
|
|
|
|
public abstract String c();
|
|
}
|