Files
rr3-apk/decompiled/sources/com/fyber/inneractive/sdk/model/vast/c.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

82 lines
2.3 KiB
Java

package com.fyber.inneractive.sdk.model.vast;
import com.fyber.inneractive.sdk.util.IAlog;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class c implements com.fyber.inneractive.sdk.response.i {
public final h a;
public j b;
public final int c;
public final int d;
public final String e;
public String f;
public String g;
public final int h;
public final HashMap i = new HashMap();
public c(h hVar, int i, int i2, String str, int i3) {
this.a = hVar;
this.c = i;
this.d = i2;
this.e = str;
this.h = i3;
}
public final void a(v vVar, String str) {
List list = (List) this.i.get(vVar);
if (list == null) {
list = new ArrayList();
this.i.put(vVar, list);
}
if (list.contains(str)) {
return;
}
list.add(str);
}
public final String toString() {
StringBuilder sb = new StringBuilder("Companion: w:");
sb.append(this.c);
sb.append(" h:");
sb.append(this.d);
sb.append(" type:");
sb.append(this.a.toString());
sb.append(" creativeType: ");
j jVar = this.b;
sb.append(jVar != null ? jVar.e() : "none");
sb.append(" ctr:");
sb.append(this.g);
sb.append(" events:");
sb.append(this.i);
return sb.toString();
}
@Override // com.fyber.inneractive.sdk.response.i
public final List<String> a(v vVar) {
if (this.i.isEmpty()) {
return null;
}
return (List) this.i.get(vVar);
}
public final JSONObject a() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("w", this.c);
jSONObject.put("h", this.d);
jSONObject.put("type", this.a.toString());
j jVar = this.b;
jSONObject.put("creativeType", jVar != null ? jVar.e() : "none");
jSONObject.put("content", this.f);
} catch (JSONException e) {
IAlog.a("Vast Parser: Failed creating Companion json object: %s", e.getMessage());
}
return jSONObject;
}
}