Files
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

46 lines
1.5 KiB
Java

package com.fyber.inneractive.sdk.config.remote;
import android.text.TextUtils;
import com.fyber.inneractive.sdk.config.enums.Vendor;
import java.util.LinkedHashSet;
import java.util.Set;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class j {
public Integer a;
public Integer b;
public Set<Vendor> c = null;
public static j a(JSONObject jSONObject) {
Vendor fromValue;
if (jSONObject == null) {
return null;
}
Integer valueOf = Integer.valueOf(jSONObject.optInt("pausePct", Integer.MIN_VALUE));
Integer valueOf2 = Integer.valueOf(jSONObject.optInt("playPct", Integer.MIN_VALUE));
j jVar = new j();
if (valueOf.intValue() == Integer.MIN_VALUE) {
valueOf = null;
}
jVar.a = valueOf;
if (valueOf2.intValue() == Integer.MIN_VALUE) {
valueOf2 = null;
}
jVar.b = valueOf2;
JSONArray optJSONArray = jSONObject.optJSONArray("vendor");
if (optJSONArray != null) {
LinkedHashSet linkedHashSet = new LinkedHashSet();
for (int i = 0; i < optJSONArray.length(); i++) {
String optString = optJSONArray.optString(i, null);
if (!TextUtils.isEmpty(optString) && (fromValue = Vendor.fromValue(optString)) != null) {
linkedHashSet.add(fromValue);
}
}
jVar.c = linkedHashSet;
}
return jVar;
}
}