- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
57 lines
2.0 KiB
Java
57 lines
2.0 KiB
Java
package com.fyber.inneractive.sdk.config.global;
|
|
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class b {
|
|
public String a;
|
|
public int b;
|
|
public final ArrayList c = new ArrayList();
|
|
public final ArrayList d = new ArrayList();
|
|
|
|
public static void a(b bVar, JSONObject jSONObject, boolean z) throws Exception {
|
|
String next;
|
|
d cVar;
|
|
if (jSONObject != null) {
|
|
Iterator<String> keys = jSONObject.keys();
|
|
while (keys.hasNext()) {
|
|
next = keys.next();
|
|
next.getClass();
|
|
switch (next) {
|
|
case "demand":
|
|
cVar = new c(jSONObject.getJSONArray(next), z);
|
|
break;
|
|
case "pub_id":
|
|
cVar = new i(jSONObject.getJSONArray(next), z);
|
|
break;
|
|
case "placement_type":
|
|
cVar = new h(jSONObject.getJSONArray(next), z);
|
|
break;
|
|
case "os":
|
|
cVar = new f(z, jSONObject.getString(next));
|
|
break;
|
|
case "sdk":
|
|
cVar = new j(z, jSONObject.getString(next));
|
|
break;
|
|
default:
|
|
cVar = null;
|
|
break;
|
|
}
|
|
if (cVar != null) {
|
|
bVar.d.add(cVar);
|
|
} else {
|
|
IAlog.a(String.format("%s: Unsupported filter type: %s", DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_B, next), new Object[0]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final String toString() {
|
|
return String.format("experiment: id=%s, variants=%s, filters=%s", this.a, this.c, this.d);
|
|
}
|
|
}
|