正在查看: CallApp v2.226 应用的 d2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CallApp v2.226 应用的 d2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fyber.fairbid;
import com.fyber.fairbid.http.connection.HttpClient;
import com.fyber.fairbid.http.requests.JsonPostBodyProvider;
import com.fyber.fairbid.http.responses.ResponseHandler;
import java.util.Collections;
import java.util.Map;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class d2 {
public final c2 a;
public final jh b;
public d2(c2 c2Var, jh jhVar) {
Intrinsics.checkNotNullParameter(c2Var, "payloadSender");
Intrinsics.checkNotNullParameter(jhVar, "logger");
this.a = c2Var;
this.b = jhVar;
}
public final void a(z1 z1Var, ResponseHandler responseHandler) {
Intrinsics.checkNotNullParameter(z1Var, "event");
Intrinsics.checkNotNullParameter(responseHandler, "responseHandler");
try {
JSONObject a = j2.a(z1Var.a());
Intrinsics.checkNotNullParameter(z1Var, "event");
Map singletonMap = Collections.singletonMap("X-FairBid-EventId", String.valueOf(z1Var.a.a));
Intrinsics.checkNotNullExpressionValue(singletonMap, "singletonMap(...)");
a(a, responseHandler, singletonMap);
} catch (JSONException e) {
this.b.b("Sending event " + z1Var.a.a + " failed on attaching data: " + e.getMessage());
}
}
public final void a(JSONObject jSONObject, ResponseHandler responseHandler, Map map) {
Intrinsics.checkNotNullParameter(jSONObject, "eventDataJSON");
Intrinsics.checkNotNullParameter(responseHandler, "responseHandler");
Intrinsics.checkNotNullParameter(map, "headers");
JSONObject jSONObject2 = new JSONObject();
JSONArray jSONArray = new JSONArray();
jSONArray.put(jSONObject);
try {
jSONObject2.put("events", jSONArray);
} catch (JSONException e) {
this.b.b("Sending events failed: " + e.getMessage());
}
HttpClient.createHttpConnectionBuilder("https://fev.fyber.com/event").withPostBodyProvider(new JsonPostBodyProvider(jSONObject2)).withHeaders(map).withResponseHandler(responseHandler).build().trigger(this.a.a);
}
}