MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 y1.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 com.smaato.sdk.video.vast.model.Tracking;
import java.util.Collections;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class y1 {
public final x1 f22164a;
public final ic f22165b;
public y1(x1 x1Var, ic icVar) {
nk.s.h(x1Var, "payloadSender");
nk.s.h(icVar, "logger");
this.f22164a = x1Var;
this.f22165b = icVar;
}
public final <T> void a(u1 u1Var, ResponseHandler<T> responseHandler) {
nk.s.h(u1Var, Tracking.EVENT);
nk.s.h(responseHandler, "responseHandler");
try {
JSONObject a10 = c2.a(u1Var.a());
nk.s.h(u1Var, Tracking.EVENT);
Map<String, String> singletonMap = Collections.singletonMap("X-FairBid-EventId", String.valueOf(u1Var.f21672a.f19309a));
nk.s.g(singletonMap, "singletonMap(HEADER_EVENT_ID, eventId.toString())");
a(a10, responseHandler, singletonMap);
} catch (JSONException e10) {
ic icVar = this.f22165b;
icVar.b("Sending event " + u1Var.f21672a.f19309a + " failed on attaching data: " + e10.getMessage());
}
}
public final <T> void a(JSONObject jSONObject, ResponseHandler<T> responseHandler, Map<String, String> map) {
nk.s.h(jSONObject, "eventDataJSON");
nk.s.h(responseHandler, "responseHandler");
nk.s.h(map, "headers");
JSONObject jSONObject2 = new JSONObject();
JSONArray jSONArray = new JSONArray();
jSONArray.put(jSONObject);
try {
jSONObject2.put("events", jSONArray);
} catch (JSONException e10) {
ic icVar = this.f22165b;
icVar.b("Sending events failed: " + e10.getMessage());
}
x1 x1Var = this.f22164a;
x1Var.getClass();
HttpClient.createHttpConnectionBuilder("https://fev.fyber.com/event").withPostBodyProvider(new JsonPostBodyProvider(jSONObject2)).withHeaders(map).withResponseHandler(responseHandler).build().trigger(x1Var.f22062a);
}
}