- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
197 lines
6.6 KiB
Java
197 lines
6.6 KiB
Java
package com.mbridge.msdk.newreward.function.f;
|
|
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.c.h;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.same.net.f.f;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.foundation.tools.k;
|
|
import com.mbridge.msdk.newreward.function.common.MBridgeGlobalCommon;
|
|
import com.mbridge.msdk.out.CustomInfoManager;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class e extends a {
|
|
private final int c;
|
|
private final String d;
|
|
private final String e;
|
|
private final boolean f;
|
|
private final String g;
|
|
private int h;
|
|
private final Map<String, String> a = new HashMap();
|
|
private boolean i = false;
|
|
private final Context b = com.mbridge.msdk.foundation.controller.c.m().c();
|
|
|
|
public final void a(int i) {
|
|
this.h = i;
|
|
}
|
|
|
|
public final void a(boolean z) {
|
|
this.i = z;
|
|
}
|
|
|
|
public final int b() {
|
|
return this.c;
|
|
}
|
|
|
|
public final String c() {
|
|
return this.d;
|
|
}
|
|
|
|
public final String d() {
|
|
return this.e;
|
|
}
|
|
|
|
public final String e() {
|
|
return this.g;
|
|
}
|
|
|
|
public e(int i, String str, String str2, boolean z, String str3) {
|
|
this.c = i;
|
|
this.d = str;
|
|
this.e = str2;
|
|
this.f = z;
|
|
this.g = str3;
|
|
}
|
|
|
|
public final Map<String, String> f() {
|
|
int i;
|
|
int i2;
|
|
Map<String, String> a = a();
|
|
if (a != null) {
|
|
this.a.putAll(a);
|
|
}
|
|
com.mbridge.msdk.foundation.same.net.f.e eVar = new com.mbridge.msdk.foundation.same.net.f.e(this.a);
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
eVar.a("gp_version", k.d(this.b));
|
|
}
|
|
eVar.a("version_flag", "1");
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
com.mbridge.msdk.foundation.controller.authoritycontroller.c.c(true);
|
|
}
|
|
eVar.a("misk_spt", String.valueOf(ak.a()));
|
|
String c = ak.c();
|
|
if (!TextUtils.isEmpty(c)) {
|
|
eVar.a("misk_spt_det", c);
|
|
}
|
|
String str = this.e;
|
|
if (str != null) {
|
|
String customInfoByUnitId = CustomInfoManager.getInstance().getCustomInfoByUnitId(str, this.f ? 7 : 8);
|
|
if (!TextUtils.isEmpty(customInfoByUnitId)) {
|
|
eVar.a("ch_info", customInfoByUnitId);
|
|
}
|
|
com.mbridge.msdk.c.k d = h.a().d(com.mbridge.msdk.foundation.controller.c.m().k(), str);
|
|
if (d != null && !TextUtils.isEmpty(d.a())) {
|
|
eVar.a("u_stid", d.a());
|
|
}
|
|
}
|
|
String a2 = com.mbridge.msdk.foundation.same.a.b.a(this.e, "reward");
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, MBridgeConstans.PROPERTIES_UNIT_ID, this.e);
|
|
if (!TextUtils.isEmpty(this.d)) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, MBridgeConstans.PLACEMENT_ID, this.d);
|
|
}
|
|
com.mbridge.msdk.videocommon.d.c a3 = com.mbridge.msdk.videocommon.d.b.a().a(com.mbridge.msdk.foundation.controller.c.m().k(), this.e);
|
|
if (a3 != null) {
|
|
i = a3.t();
|
|
i2 = a3.u();
|
|
} else {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ad_num", String.valueOf(i));
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "tnum", String.valueOf(this.c != 287 ? i2 : 1));
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "only_impression", "1");
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ping_mode", "1");
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, com.mbridge.msdk.foundation.same.net.f.e.d, a2);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, CampaignEx.JSON_KEY_AD_SOURCE_ID, "1");
|
|
String str2 = com.mbridge.msdk.foundation.same.net.f.e.f;
|
|
String str3 = MBridgeGlobalCommon.SESSION_ID;
|
|
if (str3 == null) {
|
|
str3 = "";
|
|
}
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, str2, str3);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ad_type", String.valueOf(this.c));
|
|
if (!TextUtils.isEmpty(this.g)) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "token", this.g);
|
|
}
|
|
if (this.c == 287) {
|
|
int i3 = this.h;
|
|
if (i3 == com.mbridge.msdk.foundation.same.a.I || i3 == com.mbridge.msdk.foundation.same.a.H) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ivrwd", "1");
|
|
} else {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ivrwd", "0");
|
|
}
|
|
}
|
|
if (a3 != null && !TextUtils.isEmpty(a3.k())) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "u_stid", a3.k());
|
|
}
|
|
com.mbridge.msdk.videocommon.d.a b = com.mbridge.msdk.videocommon.d.b.a().b();
|
|
if (b != null && !TextUtils.isEmpty(b.b())) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "r_stid", b.b());
|
|
}
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "rw_plus", this.i ? "1" : "0");
|
|
String d2 = ak.d(this.e);
|
|
if (!TextUtils.isEmpty(d2)) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "j", d2);
|
|
}
|
|
f.a(eVar, this.b);
|
|
f.a(eVar);
|
|
f.c(eVar);
|
|
f.e(eVar);
|
|
f.f(eVar);
|
|
return eVar.a();
|
|
}
|
|
|
|
public final void a(String str) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
this.a.put(com.mbridge.msdk.foundation.same.net.f.e.e, str);
|
|
}
|
|
|
|
public final void b(String str) {
|
|
if (TextUtils.isEmpty(str) || !com.mbridge.msdk.e.b.a()) {
|
|
return;
|
|
}
|
|
this.a.put("install_ids", str);
|
|
}
|
|
|
|
public final void c(String str) {
|
|
if (!TextUtils.isEmpty(str) && com.mbridge.msdk.e.b.a() && com.mbridge.msdk.e.b.a()) {
|
|
this.a.put("ttc_ids", str);
|
|
}
|
|
}
|
|
|
|
public final void d(String str) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
this.a.put(com.mbridge.msdk.foundation.same.net.f.e.f, str);
|
|
}
|
|
|
|
public final void b(int i) {
|
|
this.a.put("offset", String.valueOf(i));
|
|
}
|
|
|
|
public final void e(String str) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
this.a.put(CampaignEx.JSON_KEY_LOCAL_REQUEST_ID, str);
|
|
}
|
|
|
|
public final void c(int i) {
|
|
this.a.put("req_type", String.valueOf(i));
|
|
}
|
|
|
|
public final void a(Map<String, String> map) {
|
|
if (this.a == null || map == null || map.isEmpty()) {
|
|
return;
|
|
}
|
|
this.a.putAll(map);
|
|
}
|
|
}
|