- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
66 lines
1.6 KiB
Java
66 lines
1.6 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.d4;
|
|
import com.applovin.impl.sdk.utils.JsonUtils;
|
|
import java.util.Map;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class gn extends in {
|
|
public abstract void b(JSONObject jSONObject);
|
|
|
|
public abstract fh h();
|
|
|
|
public abstract void i();
|
|
|
|
public gn(String str, com.applovin.impl.sdk.j jVar) {
|
|
super(str, jVar);
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
fh h = h();
|
|
if (h != null) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.b, "Reporting pending reward: " + h + "...");
|
|
}
|
|
a(a(h), new a());
|
|
return;
|
|
}
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.b(this.b, "Pending reward not found");
|
|
}
|
|
i();
|
|
}
|
|
|
|
public class a implements d4.e {
|
|
public a() {
|
|
}
|
|
|
|
@Override // com.applovin.impl.d4.e
|
|
public void a(String str, int i, String str2, JSONObject jSONObject) {
|
|
gn.this.a(i);
|
|
}
|
|
|
|
@Override // com.applovin.impl.d4.e
|
|
public void a(String str, JSONObject jSONObject, int i) {
|
|
gn.this.b(jSONObject);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.in
|
|
public int g() {
|
|
return ((Integer) this.a.a(sj.u1)).intValue();
|
|
}
|
|
|
|
private JSONObject a(fh fhVar) {
|
|
JSONObject e = e();
|
|
JsonUtils.putString(e, "result", fhVar.b());
|
|
Map a2 = fhVar.a();
|
|
if (a2 != null) {
|
|
JsonUtils.putJSONObject(e, "params", new JSONObject(a2));
|
|
}
|
|
return e;
|
|
}
|
|
}
|