- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
288 lines
6.9 KiB
Java
288 lines
6.9 KiB
Java
package com.ironsource;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.text.TextUtils;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import java.util.Map;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
@Deprecated
|
|
/* loaded from: classes2.dex */
|
|
public class t2 implements Parcelable {
|
|
public static final Parcelable.Creator<t2> CREATOR = new a();
|
|
private String a;
|
|
private String b;
|
|
private String c;
|
|
private boolean d;
|
|
private int e;
|
|
private ArrayList<String> f;
|
|
private ArrayList<String> g;
|
|
private ArrayList<String> h;
|
|
private ArrayList<String> i;
|
|
private String j;
|
|
private String k;
|
|
private Map<String, String> l;
|
|
|
|
public class a implements Parcelable.Creator<t2> {
|
|
@Override // android.os.Parcelable.Creator
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public t2 createFromParcel(Parcel parcel) {
|
|
return new t2(parcel, null);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public t2[] newArray(int i) {
|
|
return new t2[i];
|
|
}
|
|
}
|
|
|
|
public t2() {
|
|
i();
|
|
}
|
|
|
|
private t2(Parcel parcel) {
|
|
i();
|
|
try {
|
|
this.d = parcel.readByte() != 0;
|
|
this.e = parcel.readInt();
|
|
this.a = parcel.readString();
|
|
this.b = parcel.readString();
|
|
this.c = parcel.readString();
|
|
this.j = parcel.readString();
|
|
this.k = parcel.readString();
|
|
this.l = a(parcel.readString());
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
i();
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ t2(Parcel parcel, a aVar) {
|
|
this(parcel);
|
|
}
|
|
|
|
private Map<String, String> a(String str) {
|
|
IronLog ironLog;
|
|
String th;
|
|
HashMap hashMap = new HashMap();
|
|
try {
|
|
JSONObject jSONObject = new JSONObject(str);
|
|
Iterator<String> keys = jSONObject.keys();
|
|
while (keys.hasNext()) {
|
|
String next = keys.next();
|
|
hashMap.put(next, jSONObject.getString(next));
|
|
}
|
|
} catch (JSONException e) {
|
|
i9.d().a(e);
|
|
ironLog = IronLog.INTERNAL;
|
|
th = e.toString();
|
|
ironLog.error(th);
|
|
return hashMap;
|
|
} catch (Throwable th2) {
|
|
i9.d().a(th2);
|
|
ironLog = IronLog.INTERNAL;
|
|
th = th2.toString();
|
|
ironLog.error(th);
|
|
return hashMap;
|
|
}
|
|
return hashMap;
|
|
}
|
|
|
|
private void i() {
|
|
this.d = false;
|
|
this.e = -1;
|
|
this.f = new ArrayList<>();
|
|
this.g = new ArrayList<>();
|
|
this.h = new ArrayList<>();
|
|
this.i = new ArrayList<>();
|
|
this.k = "";
|
|
this.j = "";
|
|
this.l = new HashMap();
|
|
}
|
|
|
|
public void a() {
|
|
this.e = -1;
|
|
}
|
|
|
|
public void a(int i) {
|
|
this.e = i;
|
|
}
|
|
|
|
public void a(String str, boolean z) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
if (!z) {
|
|
this.g.remove(str);
|
|
} else if (this.g.indexOf(str) == -1) {
|
|
this.g.add(str);
|
|
}
|
|
}
|
|
|
|
public void a(Map<String, String> map) {
|
|
this.l = map;
|
|
}
|
|
|
|
public void a(boolean z) {
|
|
this.d = z;
|
|
}
|
|
|
|
public String b() {
|
|
return this.c;
|
|
}
|
|
|
|
public void b(String str, boolean z) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
if (!z) {
|
|
this.i.remove(str);
|
|
} else if (this.i.indexOf(str) == -1) {
|
|
this.i.add(str);
|
|
}
|
|
}
|
|
|
|
public boolean b(String str) {
|
|
return !TextUtils.isEmpty(str) && this.g.indexOf(str) > -1;
|
|
}
|
|
|
|
public int c() {
|
|
return this.e;
|
|
}
|
|
|
|
public void c(String str, boolean z) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
if (!z) {
|
|
this.f.remove(str);
|
|
} else if (this.f.indexOf(str) == -1) {
|
|
this.f.add(str);
|
|
}
|
|
}
|
|
|
|
public boolean c(String str) {
|
|
return !TextUtils.isEmpty(str) && this.i.indexOf(str) > -1;
|
|
}
|
|
|
|
public String d() {
|
|
return this.j;
|
|
}
|
|
|
|
public void d(String str, boolean z) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
if (!z) {
|
|
this.h.remove(str);
|
|
} else if (this.h.indexOf(str) == -1) {
|
|
this.h.add(str);
|
|
}
|
|
}
|
|
|
|
public boolean d(String str) {
|
|
return !TextUtils.isEmpty(str) && this.f.indexOf(str) > -1;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public Map<String, String> e() {
|
|
return this.l;
|
|
}
|
|
|
|
public boolean e(String str) {
|
|
return !TextUtils.isEmpty(str) && this.h.indexOf(str) > -1;
|
|
}
|
|
|
|
public String f() {
|
|
return this.k;
|
|
}
|
|
|
|
public void f(String str) {
|
|
this.c = str;
|
|
}
|
|
|
|
public String g() {
|
|
return this.a;
|
|
}
|
|
|
|
public void g(String str) {
|
|
this.j = str;
|
|
}
|
|
|
|
public String h() {
|
|
return this.b;
|
|
}
|
|
|
|
public void h(String str) {
|
|
this.k = str;
|
|
}
|
|
|
|
public void i(String str) {
|
|
this.a = str;
|
|
}
|
|
|
|
public void j(String str) {
|
|
this.b = str;
|
|
}
|
|
|
|
public boolean j() {
|
|
return this.d;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
try {
|
|
sb.append("shouldRestore:");
|
|
sb.append(this.d);
|
|
sb.append(", ");
|
|
sb.append("displayedProduct:");
|
|
sb.append(this.e);
|
|
sb.append(", ");
|
|
sb.append("ISReportInit:");
|
|
sb.append(this.f);
|
|
sb.append(", ");
|
|
sb.append("ISInitSuccess:");
|
|
sb.append(this.g);
|
|
sb.append(", ");
|
|
sb.append("ISAppKey");
|
|
sb.append(this.j);
|
|
sb.append(", ");
|
|
sb.append("ISUserId");
|
|
sb.append(this.k);
|
|
sb.append(", ");
|
|
sb.append("ISExtraParams");
|
|
sb.append(this.l);
|
|
sb.append(", ");
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
try {
|
|
parcel.writeByte(this.d ? (byte) 1 : (byte) 0);
|
|
parcel.writeInt(this.e);
|
|
parcel.writeString(this.a);
|
|
parcel.writeString(this.b);
|
|
parcel.writeString(this.c);
|
|
parcel.writeString(this.j);
|
|
parcel.writeString(this.k);
|
|
parcel.writeString(new JSONObject(this.l).toString());
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
}
|
|
}
|
|
}
|