Files
rr3-apk/decompiled-community/sources/com/mbridge/msdk/out/reveue/MBridgeRevenueParamsEntityForTradPlus.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -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);
}
}