- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
74 lines
2.0 KiB
Java
74 lines
2.0 KiB
Java
package com.mbridge.msdk.newreward.function.f;
|
|
|
|
import android.text.TextUtils;
|
|
import com.ironsource.v8;
|
|
import com.mbridge.msdk.foundation.same.net.Aa;
|
|
import com.mbridge.msdk.foundation.same.net.f.f;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.newreward.function.c.b.h;
|
|
import java.net.URLEncoder;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class d extends a {
|
|
private String a;
|
|
private int b;
|
|
private String c;
|
|
private int d;
|
|
|
|
public final void a(int i) {
|
|
this.b = i;
|
|
}
|
|
|
|
public final void a(String str) {
|
|
this.a = str;
|
|
}
|
|
|
|
public final String b() {
|
|
return this.a;
|
|
}
|
|
|
|
public final void b(int i) {
|
|
this.d = i;
|
|
}
|
|
|
|
public final void b(String str) {
|
|
this.c = str;
|
|
}
|
|
|
|
public final Map<String, String> c() {
|
|
com.mbridge.msdk.foundation.same.net.f.e eVar = new com.mbridge.msdk.foundation.same.net.f.e(a());
|
|
if (this.d == h.b && !TextUtils.isEmpty(this.a)) {
|
|
eVar.a("unit_ids", String.format("[%s]", this.a));
|
|
}
|
|
eVar.a("vtag", TextUtils.isEmpty(this.c) ? "" : this.c);
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
String b = Aa.b();
|
|
if (!TextUtils.isEmpty(b)) {
|
|
eVar.a("keyword", b);
|
|
}
|
|
}
|
|
com.mbridge.msdk.c.a.d.a(com.mbridge.msdk.foundation.controller.c.m().c(), eVar);
|
|
f.d(eVar);
|
|
f.f(eVar);
|
|
return eVar.a();
|
|
}
|
|
|
|
public final String d() {
|
|
StringBuilder sb = new StringBuilder();
|
|
try {
|
|
for (Map.Entry<String, String> entry : c().entrySet()) {
|
|
if (sb.length() > 0) {
|
|
sb.append('&');
|
|
}
|
|
sb.append(URLEncoder.encode(entry.getKey(), "UTF-8"));
|
|
sb.append(v8.i.b);
|
|
sb.append(URLEncoder.encode(entry.getValue(), "UTF-8"));
|
|
}
|
|
} catch (Throwable th) {
|
|
af.b("RewardSettingReqParameters", th.getMessage());
|
|
}
|
|
return sb.toString();
|
|
}
|
|
}
|