Files
rr3-apk/decompiled/sources/com/unity3d/services/ads/gmascar/utils/ScarRequestHandler.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

29 lines
1.3 KiB
Java

package com.unity3d.services.ads.gmascar.utils;
import com.ironsource.nb;
import com.unity3d.services.ads.gmascar.models.BiddingSignals;
import com.unity3d.services.core.device.Device;
import com.unity3d.services.core.misc.Utilities;
import com.unity3d.services.core.network.core.HttpClient;
import com.unity3d.services.core.network.model.HttpRequest;
import com.unity3d.services.core.network.model.RequestType;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.HashMap;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class ScarRequestHandler {
private final HttpClient httpClient = (HttpClient) Utilities.getService(HttpClient.class);
public void makeUploadRequest(String str, BiddingSignals biddingSignals, String str2) throws Exception {
HashMap hashMap = new HashMap();
hashMap.put("Content-Type", Collections.singletonList(nb.L));
HashMap hashMap2 = new HashMap();
hashMap2.put(ScarConstants.IDFI_KEY, Device.getIdfi());
hashMap2.put(ScarConstants.TOKEN_ID_KEY, str);
hashMap2.putAll(biddingSignals.getMap());
this.httpClient.executeBlocking(new HttpRequest(str2, "", RequestType.POST, new JSONObject(hashMap2).toString().getBytes(StandardCharsets.UTF_8), hashMap));
}
}