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>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package com.unity3d.ads.network;
import com.unity3d.ads.network.model.HttpRequest;
import kotlin.coroutines.Continuation;
/* loaded from: classes4.dex */
public interface HttpClient {
Object execute(HttpRequest httpRequest, Continuation continuation);
}

View File

@@ -0,0 +1,79 @@
package com.unity3d.ads.network.client;
import com.unity3d.ads.network.mapper.HttpRequestToOkHttpRequestKt;
import com.unity3d.ads.network.model.HttpRequest;
import com.unity3d.ads.network.model.HttpResponse;
import java.util.Map;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineScope;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.ResponseBody;
@DebugMetadata(c = "com.unity3d.ads.network.client.OkHttp3Client$execute$2", f = "OkHttp3Client.kt", l = {35}, m = "invokeSuspend")
/* loaded from: classes4.dex */
public final class OkHttp3Client$execute$2 extends SuspendLambda implements Function2 {
final /* synthetic */ HttpRequest $request;
int label;
final /* synthetic */ OkHttp3Client this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public OkHttp3Client$execute$2(HttpRequest httpRequest, OkHttp3Client okHttp3Client, Continuation continuation) {
super(2, continuation);
this.$request = httpRequest;
this.this$0 = okHttp3Client;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new OkHttp3Client$execute$2(this.$request, this.this$0, continuation);
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) {
return ((OkHttp3Client$execute$2) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
Object coroutine_suspended;
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
ResultKt.throwOnFailure(obj);
Request okHttpRequest = HttpRequestToOkHttpRequestKt.toOkHttpRequest(this.$request);
OkHttp3Client okHttp3Client = this.this$0;
long connectTimeout = this.$request.getConnectTimeout();
long readTimeout = this.$request.getReadTimeout();
this.label = 1;
obj = okHttp3Client.makeRequest(okHttpRequest, connectTimeout, readTimeout, this);
if (obj == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
Response response = (Response) obj;
int code = response.code();
Map multimap = response.headers().toMultimap();
String httpUrl = response.request().url().toString();
ResponseBody body = response.body();
String string = body != null ? body.string() : null;
if (string == null) {
string = "";
}
Intrinsics.checkNotNullExpressionValue(multimap, "toMultimap()");
Intrinsics.checkNotNullExpressionValue(httpUrl, "toString()");
return new HttpResponse(string, code, multimap, httpUrl);
}
}

View File

@@ -0,0 +1,76 @@
package com.unity3d.ads.network.client;
import com.unity3d.ads.network.HttpClient;
import com.unity3d.ads.network.model.HttpRequest;
import com.unity3d.services.core.domain.ISDKDispatchers;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import kotlin.Result;
import kotlin.ResultKt;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt;
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugProbesKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.CancellableContinuation;
import kotlinx.coroutines.CancellableContinuationImpl;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
@SourceDebugExtension({"SMAP\nOkHttp3Client.kt\nKotlin\n*S Kotlin\n*F\n+ 1 OkHttp3Client.kt\ncom/unity3d/ads/network/client/OkHttp3Client\n+ 2 CancellableContinuation.kt\nkotlinx/coroutines/CancellableContinuationKt\n*L\n1#1,65:1\n314#2,11:66\n*S KotlinDebug\n*F\n+ 1 OkHttp3Client.kt\ncom/unity3d/ads/network/client/OkHttp3Client\n*L\n48#1:66,11\n*E\n"})
/* loaded from: classes4.dex */
public final class OkHttp3Client implements HttpClient {
private final OkHttpClient client;
private final ISDKDispatchers dispatchers;
public OkHttp3Client(ISDKDispatchers dispatchers, OkHttpClient client) {
Intrinsics.checkNotNullParameter(dispatchers, "dispatchers");
Intrinsics.checkNotNullParameter(client, "client");
this.dispatchers = dispatchers;
this.client = client;
}
@Override // com.unity3d.ads.network.HttpClient
public Object execute(HttpRequest httpRequest, Continuation continuation) {
return BuildersKt.withContext(this.dispatchers.getIo(), new OkHttp3Client$execute$2(httpRequest, this, null), continuation);
}
/* JADX INFO: Access modifiers changed from: private */
public final Object makeRequest(Request request, long j, long j2, Continuation continuation) {
Continuation intercepted;
Object coroutine_suspended;
intercepted = IntrinsicsKt__IntrinsicsJvmKt.intercepted(continuation);
final CancellableContinuationImpl cancellableContinuationImpl = new CancellableContinuationImpl(intercepted, 1);
cancellableContinuationImpl.initCancellability();
OkHttpClient.Builder newBuilder = this.client.newBuilder();
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
newBuilder.connectTimeout(j, timeUnit).readTimeout(j2, timeUnit).build().newCall(request).enqueue(new Callback() { // from class: com.unity3d.ads.network.client.OkHttp3Client$makeRequest$2$1
@Override // okhttp3.Callback
public void onResponse(Call call, Response response) {
Intrinsics.checkNotNullParameter(call, "call");
Intrinsics.checkNotNullParameter(response, "response");
CancellableContinuation.this.resumeWith(Result.m4060constructorimpl(response));
}
@Override // okhttp3.Callback
public void onFailure(Call call, IOException e) {
Intrinsics.checkNotNullParameter(call, "call");
Intrinsics.checkNotNullParameter(e, "e");
CancellableContinuation cancellableContinuation = CancellableContinuation.this;
Result.Companion companion = Result.Companion;
cancellableContinuation.resumeWith(Result.m4060constructorimpl(ResultKt.createFailure(e)));
}
});
Object result = cancellableContinuationImpl.getResult();
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
if (result == coroutine_suspended) {
DebugProbesKt.probeCoroutineSuspended(continuation);
}
return result;
}
}

View File

@@ -0,0 +1,63 @@
package com.unity3d.ads.network.mapper;
import com.unity3d.ads.network.model.HttpBody;
import com.unity3d.ads.network.model.HttpRequest;
import java.util.List;
import java.util.Map;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.text.StringsKt__StringsKt;
import okhttp3.Headers;
import okhttp3.MediaType;
import okhttp3.Request;
import okhttp3.RequestBody;
@SourceDebugExtension({"SMAP\nHttpRequestToOkHttpRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HttpRequestToOkHttpRequest.kt\ncom/unity3d/ads/network/mapper/HttpRequestToOkHttpRequestKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n*L\n1#1,25:1\n1#2:26\n215#3,2:27\n*S KotlinDebug\n*F\n+ 1 HttpRequestToOkHttpRequest.kt\ncom/unity3d/ads/network/mapper/HttpRequestToOkHttpRequestKt\n*L\n17#1:27,2\n*E\n"})
/* loaded from: classes4.dex */
public final class HttpRequestToOkHttpRequestKt {
private static final RequestBody generateOkHttpBody(HttpBody httpBody) {
if (httpBody instanceof HttpBody.StringBody) {
return RequestBody.create(MediaType.parse("text/plain;charset=utf-8"), ((HttpBody.StringBody) httpBody).getContent());
}
if (httpBody instanceof HttpBody.ByteArrayBody) {
return RequestBody.create(MediaType.parse("text/plain;charset=utf-8"), ((HttpBody.ByteArrayBody) httpBody).getContent());
}
if (httpBody instanceof HttpBody.EmptyBody) {
return null;
}
throw new NoWhenBranchMatchedException();
}
private static final Headers generateOkHttpHeaders(HttpRequest httpRequest) {
String joinToString$default;
Headers.Builder builder = new Headers.Builder();
for (Map.Entry<String, List<String>> entry : httpRequest.getHeaders().entrySet()) {
String key = entry.getKey();
joinToString$default = CollectionsKt___CollectionsKt.joinToString$default(entry.getValue(), ",", null, null, 0, null, null, 62, null);
builder.add(key, joinToString$default);
}
Headers build = builder.build();
Intrinsics.checkNotNullExpressionValue(build, "Builder()\n .also { he…ng(\",\")) } }\n .build()");
return build;
}
public static final Request toOkHttpRequest(HttpRequest httpRequest) {
String trim;
String trim2;
String removeSuffix;
Intrinsics.checkNotNullParameter(httpRequest, "<this>");
Request.Builder builder = new Request.Builder();
StringBuilder sb = new StringBuilder();
trim = StringsKt__StringsKt.trim(httpRequest.getBaseURL(), '/');
sb.append(trim);
sb.append('/');
trim2 = StringsKt__StringsKt.trim(httpRequest.getPath(), '/');
sb.append(trim2);
removeSuffix = StringsKt__StringsKt.removeSuffix(sb.toString(), "/");
Request build = builder.url(removeSuffix).method(httpRequest.getMethod().toString(), generateOkHttpBody(httpRequest.getBody())).headers(generateOkHttpHeaders(httpRequest)).build();
Intrinsics.checkNotNullExpressionValue(build, "Builder()\n .url(\"${ba…tpHeaders())\n .build()");
return build;
}
}

View File

@@ -0,0 +1,40 @@
package com.unity3d.ads.network.model;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public interface HttpBody {
public static final class StringBody implements HttpBody {
private final String content;
public final String getContent() {
return this.content;
}
public StringBody(String content) {
Intrinsics.checkNotNullParameter(content, "content");
this.content = content;
}
}
public static final class ByteArrayBody implements HttpBody {
private final byte[] content;
public final byte[] getContent() {
return this.content;
}
public ByteArrayBody(byte[] content) {
Intrinsics.checkNotNullParameter(content, "content");
this.content = content;
}
}
public static final class EmptyBody implements HttpBody {
public static final EmptyBody INSTANCE = new EmptyBody();
private EmptyBody() {
}
}
}

View File

@@ -0,0 +1,302 @@
package com.unity3d.ads.network.model;
import com.unity3d.ads.network.model.HttpBody;
import java.util.List;
import java.util.Map;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class HttpRequest {
public static final Companion Companion = new Companion(null);
private static final String DEFAULT_SCHEME = "https";
private static final int DEFAULT_TIMEOUT = 30000;
private final String baseURL;
private final HttpBody body;
private final int callTimeout;
private final int connectTimeout;
private final Map<String, List<String>> headers;
private final RequestType method;
private final Map<String, String> parameters;
private final String path;
private final Integer port;
private final int readTimeout;
private final String scheme;
private final int writeTimeout;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL) {
this(baseURL, null, null, null, null, null, null, null, 0, 0, 0, 0, 4094, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path) {
this(baseURL, path, null, null, null, null, null, null, 0, 0, 0, 0, 4092, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method) {
this(baseURL, path, method, null, null, null, null, null, 0, 0, 0, 0, 4088, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body) {
this(baseURL, path, method, body, null, null, null, null, 0, 0, 0, 0, 4080, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers) {
this(baseURL, path, method, body, headers, null, null, null, 0, 0, 0, 0, 4064, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters) {
this(baseURL, path, method, body, headers, parameters, null, null, 0, 0, 0, 0, 4032, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters, String scheme) {
this(baseURL, path, method, body, headers, parameters, scheme, null, 0, 0, 0, 0, 3968, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
Intrinsics.checkNotNullParameter(scheme, "scheme");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters, String scheme, Integer num) {
this(baseURL, path, method, body, headers, parameters, scheme, num, 0, 0, 0, 0, 3840, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
Intrinsics.checkNotNullParameter(scheme, "scheme");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters, String scheme, Integer num, int i) {
this(baseURL, path, method, body, headers, parameters, scheme, num, i, 0, 0, 0, 3584, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
Intrinsics.checkNotNullParameter(scheme, "scheme");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters, String scheme, Integer num, int i, int i2) {
this(baseURL, path, method, body, headers, parameters, scheme, num, i, i2, 0, 0, 3072, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
Intrinsics.checkNotNullParameter(scheme, "scheme");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters, String scheme, Integer num, int i, int i2, int i3) {
this(baseURL, path, method, body, headers, parameters, scheme, num, i, i2, i3, 0, 2048, null);
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
Intrinsics.checkNotNullParameter(scheme, "scheme");
}
public final String component1() {
return this.baseURL;
}
public final int component10() {
return this.readTimeout;
}
public final int component11() {
return this.writeTimeout;
}
public final int component12() {
return this.callTimeout;
}
public final String component2() {
return this.path;
}
public final RequestType component3() {
return this.method;
}
public final HttpBody component4() {
return this.body;
}
public final Map<String, List<String>> component5() {
return this.headers;
}
public final Map<String, String> component6() {
return this.parameters;
}
public final String component7() {
return this.scheme;
}
public final Integer component8() {
return this.port;
}
public final int component9() {
return this.connectTimeout;
}
public final HttpRequest copy(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters, String scheme, Integer num, int i, int i2, int i3, int i4) {
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
Intrinsics.checkNotNullParameter(scheme, "scheme");
return new HttpRequest(baseURL, path, method, body, headers, parameters, scheme, num, i, i2, i3, i4);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof HttpRequest)) {
return false;
}
HttpRequest httpRequest = (HttpRequest) obj;
return Intrinsics.areEqual(this.baseURL, httpRequest.baseURL) && Intrinsics.areEqual(this.path, httpRequest.path) && this.method == httpRequest.method && Intrinsics.areEqual(this.body, httpRequest.body) && Intrinsics.areEqual(this.headers, httpRequest.headers) && Intrinsics.areEqual(this.parameters, httpRequest.parameters) && Intrinsics.areEqual(this.scheme, httpRequest.scheme) && Intrinsics.areEqual(this.port, httpRequest.port) && this.connectTimeout == httpRequest.connectTimeout && this.readTimeout == httpRequest.readTimeout && this.writeTimeout == httpRequest.writeTimeout && this.callTimeout == httpRequest.callTimeout;
}
public final String getBaseURL() {
return this.baseURL;
}
public final HttpBody getBody() {
return this.body;
}
public final int getCallTimeout() {
return this.callTimeout;
}
public final int getConnectTimeout() {
return this.connectTimeout;
}
public final Map<String, List<String>> getHeaders() {
return this.headers;
}
public final RequestType getMethod() {
return this.method;
}
public final Map<String, String> getParameters() {
return this.parameters;
}
public final String getPath() {
return this.path;
}
public final Integer getPort() {
return this.port;
}
public final int getReadTimeout() {
return this.readTimeout;
}
public final String getScheme() {
return this.scheme;
}
public final int getWriteTimeout() {
return this.writeTimeout;
}
public int hashCode() {
int hashCode = ((((((((((((this.baseURL.hashCode() * 31) + this.path.hashCode()) * 31) + this.method.hashCode()) * 31) + this.body.hashCode()) * 31) + this.headers.hashCode()) * 31) + this.parameters.hashCode()) * 31) + this.scheme.hashCode()) * 31;
Integer num = this.port;
return ((((((((hashCode + (num == null ? 0 : num.hashCode())) * 31) + Integer.hashCode(this.connectTimeout)) * 31) + Integer.hashCode(this.readTimeout)) * 31) + Integer.hashCode(this.writeTimeout)) * 31) + Integer.hashCode(this.callTimeout);
}
public String toString() {
return "HttpRequest(baseURL=" + this.baseURL + ", path=" + this.path + ", method=" + this.method + ", body=" + this.body + ", headers=" + this.headers + ", parameters=" + this.parameters + ", scheme=" + this.scheme + ", port=" + this.port + ", connectTimeout=" + this.connectTimeout + ", readTimeout=" + this.readTimeout + ", writeTimeout=" + this.writeTimeout + ", callTimeout=" + this.callTimeout + ')';
}
/* JADX WARN: Multi-variable type inference failed */
public HttpRequest(String baseURL, String path, RequestType method, HttpBody body, Map<String, ? extends List<String>> headers, Map<String, String> parameters, String scheme, Integer num, int i, int i2, int i3, int i4) {
Intrinsics.checkNotNullParameter(baseURL, "baseURL");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(parameters, "parameters");
Intrinsics.checkNotNullParameter(scheme, "scheme");
this.baseURL = baseURL;
this.path = path;
this.method = method;
this.body = body;
this.headers = headers;
this.parameters = parameters;
this.scheme = scheme;
this.port = num;
this.connectTimeout = i;
this.readTimeout = i2;
this.writeTimeout = i3;
this.callTimeout = i4;
}
public /* synthetic */ HttpRequest(String str, String str2, RequestType requestType, HttpBody httpBody, Map map, Map map2, String str3, Integer num, int i, int i2, int i3, int i4, int i5, DefaultConstructorMarker defaultConstructorMarker) {
this(str, (i5 & 2) != 0 ? "" : str2, (i5 & 4) != 0 ? RequestType.GET : requestType, (i5 & 8) != 0 ? HttpBody.EmptyBody.INSTANCE : httpBody, (i5 & 16) != 0 ? MapsKt__MapsKt.emptyMap() : map, (i5 & 32) != 0 ? MapsKt__MapsKt.emptyMap() : map2, (i5 & 64) != 0 ? "https" : str3, (i5 & 128) != 0 ? null : num, (i5 & 256) != 0 ? 30000 : i, (i5 & 512) != 0 ? 30000 : i2, (i5 & 1024) != 0 ? 30000 : i3, (i5 & 2048) == 0 ? i4 : 30000);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}

View File

@@ -0,0 +1,122 @@
package com.unity3d.ads.network.model;
import java.util.Map;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class HttpResponse {
private final Object body;
private final Map<String, Object> headers;
private final int statusCode;
private final String urlString;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpResponse(Object body) {
this(body, 0, null, null, 14, null);
Intrinsics.checkNotNullParameter(body, "body");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpResponse(Object body, int i) {
this(body, i, null, null, 12, null);
Intrinsics.checkNotNullParameter(body, "body");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public HttpResponse(Object body, int i, Map<String, ? extends Object> headers) {
this(body, i, headers, null, 8, null);
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
}
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ HttpResponse copy$default(HttpResponse httpResponse, Object obj, int i, Map map, String str, int i2, Object obj2) {
if ((i2 & 1) != 0) {
obj = httpResponse.body;
}
if ((i2 & 2) != 0) {
i = httpResponse.statusCode;
}
if ((i2 & 4) != 0) {
map = httpResponse.headers;
}
if ((i2 & 8) != 0) {
str = httpResponse.urlString;
}
return httpResponse.copy(obj, i, map, str);
}
public final Object component1() {
return this.body;
}
public final int component2() {
return this.statusCode;
}
public final Map<String, Object> component3() {
return this.headers;
}
public final String component4() {
return this.urlString;
}
public final HttpResponse copy(Object body, int i, Map<String, ? extends Object> headers, String urlString) {
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(urlString, "urlString");
return new HttpResponse(body, i, headers, urlString);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof HttpResponse)) {
return false;
}
HttpResponse httpResponse = (HttpResponse) obj;
return Intrinsics.areEqual(this.body, httpResponse.body) && this.statusCode == httpResponse.statusCode && Intrinsics.areEqual(this.headers, httpResponse.headers) && Intrinsics.areEqual(this.urlString, httpResponse.urlString);
}
public final Object getBody() {
return this.body;
}
public final Map<String, Object> getHeaders() {
return this.headers;
}
public final int getStatusCode() {
return this.statusCode;
}
public final String getUrlString() {
return this.urlString;
}
public int hashCode() {
return (((((this.body.hashCode() * 31) + Integer.hashCode(this.statusCode)) * 31) + this.headers.hashCode()) * 31) + this.urlString.hashCode();
}
public String toString() {
return "HttpResponse(body=" + this.body + ", statusCode=" + this.statusCode + ", headers=" + this.headers + ", urlString=" + this.urlString + ')';
}
public HttpResponse(Object body, int i, Map<String, ? extends Object> headers, String urlString) {
Intrinsics.checkNotNullParameter(body, "body");
Intrinsics.checkNotNullParameter(headers, "headers");
Intrinsics.checkNotNullParameter(urlString, "urlString");
this.body = body;
this.statusCode = i;
this.headers = headers;
this.urlString = urlString;
}
public /* synthetic */ HttpResponse(Object obj, int i, Map map, String str, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(obj, (i2 & 2) != 0 ? 200 : i, (i2 & 4) != 0 ? MapsKt__MapsKt.emptyMap() : map, (i2 & 8) != 0 ? "" : str);
}
}

View File

@@ -0,0 +1,8 @@
package com.unity3d.ads.network.model;
/* loaded from: classes4.dex */
public enum RequestType {
POST,
GET,
HEAD
}