- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
96 lines
4.0 KiB
Java
96 lines
4.0 KiB
Java
package com.mbridge.msdk.splash.e;
|
|
|
|
import android.content.Context;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.controller.c;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.entity.n;
|
|
import com.mbridge.msdk.foundation.same.report.d.d;
|
|
import com.mbridge.msdk.foundation.same.report.g;
|
|
import com.mbridge.msdk.foundation.tools.ab;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.mbbid.common.BidResponsedEx;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class a {
|
|
public static void a(Context context, CampaignEx campaignEx, String str, String str2, long j, int i) {
|
|
if (campaignEx != null) {
|
|
try {
|
|
if (campaignEx.isMraid()) {
|
|
n nVar = new n();
|
|
nVar.f(campaignEx.getRequestId());
|
|
nVar.g(campaignEx.getRequestIdNotice());
|
|
nVar.e(campaignEx.getId());
|
|
nVar.b(i);
|
|
nVar.l(String.valueOf(System.currentTimeMillis() - j));
|
|
nVar.n("");
|
|
nVar.h(str2);
|
|
nVar.d("6");
|
|
nVar.d(n.a);
|
|
g.b(nVar, str, campaignEx);
|
|
}
|
|
} catch (Exception e) {
|
|
af.b("SplashReport", e.getMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void a(String str, CampaignEx campaignEx) {
|
|
if (campaignEx == null || !campaignEx.isMraid()) {
|
|
return;
|
|
}
|
|
n nVar = new n("2000061", campaignEx.getId(), campaignEx.getRequestId(), campaignEx.getRequestIdNotice(), str, ab.m(c.m().c()));
|
|
nVar.d(n.a);
|
|
g.b(nVar, c.m().c(), str);
|
|
}
|
|
|
|
public static void a(int i, String str, String str2, CampaignEx campaignEx) {
|
|
if (campaignEx != null) {
|
|
try {
|
|
JSONObject jSONObject = new JSONObject();
|
|
jSONObject.put("key", "2000068");
|
|
jSONObject.put(MBridgeConstans.PROPERTIES_UNIT_ID, str2);
|
|
jSONObject.put(BidResponsedEx.KEY_CID, campaignEx.getId());
|
|
jSONObject.put("rid", campaignEx.getRequestId());
|
|
jSONObject.put("rid_n", campaignEx.getRequestIdNotice());
|
|
jSONObject.put(CampaignEx.JSON_KEY_CREATIVE_ID, campaignEx.getCreativeId());
|
|
jSONObject.put("hb", campaignEx.isBidCampaign() ? 1 : 0);
|
|
jSONObject.put("network_type", ab.m(c.m().c()));
|
|
jSONObject.put("result", i);
|
|
jSONObject.put("reason", str);
|
|
d.a().a(jSONObject);
|
|
} catch (Throwable th) {
|
|
af.b("SplashReport", th.getMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void a(String str, int i, CampaignEx campaignEx) {
|
|
if (campaignEx != null) {
|
|
try {
|
|
JSONObject jSONObject = new JSONObject();
|
|
jSONObject.put("key", "2000069");
|
|
jSONObject.put(MBridgeConstans.PROPERTIES_UNIT_ID, str);
|
|
jSONObject.put(BidResponsedEx.KEY_CID, campaignEx.getId());
|
|
jSONObject.put("rid", campaignEx.getRequestId());
|
|
jSONObject.put("rid_n", campaignEx.getRequestIdNotice());
|
|
jSONObject.put(CampaignEx.JSON_KEY_CREATIVE_ID, campaignEx.getCreativeId());
|
|
jSONObject.put("hb", campaignEx.isBidCampaign() ? 1 : 0);
|
|
jSONObject.put("network_type", ab.m(c.m().c()));
|
|
jSONObject.put("close_type", i);
|
|
d.a().a(jSONObject);
|
|
} catch (Throwable th) {
|
|
af.b("SplashReport", th.getMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void a(Context context, CampaignEx campaignEx) {
|
|
if (campaignEx == null || campaignEx.getNativeVideoTracking() == null || campaignEx.getNativeVideoTracking().l() == null) {
|
|
return;
|
|
}
|
|
com.mbridge.msdk.click.a.a(context, campaignEx, campaignEx.getCampaignUnitId(), campaignEx.getNativeVideoTracking().l(), false, false);
|
|
}
|
|
}
|