Files
rr3-apk/decompiled/sources/com/tapjoy/internal/q1.java
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.3 KiB
Java

package com.tapjoy.internal;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class q1 {
public final JSONObject a;
public final String b;
public final ArrayList c = new ArrayList();
public q1(JSONObject jSONObject) {
this.a = jSONObject;
this.b = null;
if (jSONObject != null) {
this.b = jSONObject.optString("group_id");
JSONArray optJSONArray = jSONObject.optJSONArray("currencies");
int length = optJSONArray != null ? optJSONArray.length() : 0;
for (int i = 0; i < length; i++) {
JSONObject optJSONObject = optJSONArray != null ? optJSONArray.optJSONObject(i) : null;
if (optJSONObject != null) {
this.c.add(new y1(optJSONObject));
}
}
}
}
public final String a() {
return this.b;
}
public final ArrayList b() {
return this.c;
}
public final String c() {
JSONArray optJSONArray;
JSONObject jSONObject = this.a;
if (jSONObject == null || (optJSONArray = jSONObject.optJSONArray("currencies")) == null) {
return null;
}
return optJSONArray.toString();
}
}