Files
rr3-apk/decompiled/sources/com/mbridge/msdk/out/reveue/MBridgeRevenueParamsEntityForTradPlus.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

47 lines
1.9 KiB
Java

package com.mbridge.msdk.out.reveue;
import android.text.TextUtils;
import com.ironsource.sm;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class MBridgeRevenueParamsEntityForTradPlus extends MBridgeRevenueParamsEntity {
public MBridgeRevenueParamsEntityForTradPlus(String str, String str2) {
super(str, str2);
setMediationName("TradPlus");
}
public void setTradPlusAdInfo(String str) {
String str2;
if (!TextUtils.isEmpty(str)) {
try {
String replace = str.replace("\"", "\\\"").replace("----------------------\n", "{\"").replaceAll("(?<!\"):(?!\")", "\":\"").replace("\n", "\",\"");
if (replace.endsWith("\"")) {
str2 = (replace + "}").replace(",\"}", "}");
} else {
str2 = replace + "\"}";
}
JSONObject jSONObject = new JSONObject(str2);
setAdType(jSONObject.optInt("placementAdType") + "");
setMediationUnitId(jSONObject.optString("tpAdUnitId"));
setNetworkName(jSONObject.optString(sm.a));
setBidType(Boolean.valueOf(jSONObject.optBoolean("isBiddingNetwork", false)));
setRevenue(jSONObject.optString("ecpm", ""));
setPrecision(jSONObject.optString("ecpmPrecision", ""));
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("instanceName", jSONObject.optString(sm.a, ""));
jSONObject2.put("instanceId", jSONObject.optString("adSourceId", ""));
setNetworkInfo(jSONObject2);
} catch (Exception e) {
e.printStackTrace();
}
}
setSourceData(str, str);
}
@Override // com.mbridge.msdk.out.reveue.MBridgeRevenueParamsEntity
public void setDspInfo(String str, String str2) {
super.setDspInfo(str, str2);
}
}