- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
65 lines
1.9 KiB
Java
65 lines
1.9 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.sdk.utils.JsonUtils;
|
|
import com.applovin.impl.sdk.utils.StringUtils;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class fn extends gn {
|
|
private final ie h;
|
|
|
|
@Override // com.applovin.impl.gn
|
|
public void b(JSONObject jSONObject) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.b, "Reported reward successfully for mediated ad: " + this.h);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.in
|
|
public String f() {
|
|
return "2.0/mcr";
|
|
}
|
|
|
|
@Override // com.applovin.impl.gn
|
|
public void i() {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.b(this.b, "No reward result was found for mediated ad: " + this.h);
|
|
}
|
|
}
|
|
|
|
public fn(ie ieVar, com.applovin.impl.sdk.j jVar) {
|
|
super("TaskReportMaxReward", jVar);
|
|
this.h = ieVar;
|
|
}
|
|
|
|
@Override // com.applovin.impl.gn
|
|
public fh h() {
|
|
return this.h.m0();
|
|
}
|
|
|
|
@Override // com.applovin.impl.in
|
|
public void a(int i) {
|
|
super.a(i);
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.b, "Failed to report reward for mediated ad: " + this.h + " - error code: " + i);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.in
|
|
public void a(JSONObject jSONObject) {
|
|
JsonUtils.putString(jSONObject, "ad_unit_id", this.h.getAdUnitId());
|
|
JsonUtils.putString(jSONObject, "placement", this.h.getPlacement());
|
|
JsonUtils.putString(jSONObject, "custom_data", this.h.e());
|
|
String q0 = this.h.q0();
|
|
if (!StringUtils.isValidString(q0)) {
|
|
q0 = "NO_MCODE";
|
|
}
|
|
JsonUtils.putString(jSONObject, "mcode", q0);
|
|
String B = this.h.B();
|
|
if (!StringUtils.isValidString(B)) {
|
|
B = "NO_BCODE";
|
|
}
|
|
JsonUtils.putString(jSONObject, "bcode", B);
|
|
}
|
|
}
|