- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
31 lines
1.1 KiB
Java
31 lines
1.1 KiB
Java
package com.fyber.inneractive.sdk.config.remote;
|
|
|
|
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
|
|
import com.mbridge.msdk.mbsignalcommon.commonwebview.ToolBar;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class b {
|
|
public UnitDisplayType a;
|
|
public Boolean b;
|
|
public Integer c;
|
|
public Integer d;
|
|
|
|
public static b a(JSONObject jSONObject) {
|
|
if (jSONObject == null) {
|
|
return null;
|
|
}
|
|
b bVar = new b();
|
|
Integer valueOf = Integer.valueOf(jSONObject.optInt("hide", Integer.MIN_VALUE));
|
|
Integer valueOf2 = Integer.valueOf(jSONObject.optInt(ToolBar.REFRESH, Integer.MIN_VALUE));
|
|
bVar.a = UnitDisplayType.fromValue(jSONObject.optString("unitDisplayType"));
|
|
bVar.b = jSONObject.has("close") ? Boolean.valueOf(jSONObject.optBoolean("close", true)) : null;
|
|
if (valueOf.intValue() == Integer.MIN_VALUE) {
|
|
valueOf = null;
|
|
}
|
|
bVar.d = valueOf;
|
|
bVar.c = valueOf2.intValue() != Integer.MIN_VALUE ? valueOf2 : null;
|
|
return bVar;
|
|
}
|
|
}
|