Files
rr3-apk/decompiled/sources/com/unity3d/mediation/LevelPlayAdSize.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

157 lines
5.7 KiB
Java

package com.unity3d.mediation;
import android.content.Context;
import com.ironsource.h1;
import com.ironsource.mediationsdk.l;
import com.ironsource.y2;
import com.vungle.ads.internal.protos.Sdk;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class LevelPlayAdSize {
private static final int f = 320;
private static final int g = 50;
private static final int h = 320;
private static final int i = 90;
private static final int j = 300;
private static final int k = 250;
private static final int m = 90;
private int a;
private int b;
private final String c;
private final boolean d;
private final LevelPlayAdSize e;
public static final Companion Companion = new Companion(null);
public static final LevelPlayAdSize BANNER = new LevelPlayAdSize(Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE, 50, l.a, false, null, 16, null);
public static final LevelPlayAdSize MEDIUM_RECTANGLE = new LevelPlayAdSize(300, 250, l.g, false, null, 16, null);
private static final int l = 728;
public static final LevelPlayAdSize LEADERBOARD = new LevelPlayAdSize(l, 90, l.d, false, null, 16, null);
public static final LevelPlayAdSize LARGE = new LevelPlayAdSize(Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE, 90, l.b, false, null, 16, null);
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static /* synthetic */ LevelPlayAdSize createAdaptiveAdSize$default(Companion companion, Context context, Integer num, int i, Object obj) {
if ((i & 2) != 0) {
num = null;
}
return companion.createAdaptiveAdSize(context, num);
}
public final LevelPlayAdSize createAdSize$mediationsdk_release(String adSize) {
Intrinsics.checkNotNullParameter(adSize, "adSize");
int hashCode = adSize.hashCode();
if (hashCode != -96588539) {
if (hashCode != 72205083) {
if (hashCode != 446888797) {
if (hashCode == 1951953708 && adSize.equals(l.a)) {
return LevelPlayAdSize.BANNER;
}
} else if (adSize.equals(l.d)) {
return LevelPlayAdSize.LEADERBOARD;
}
} else if (adSize.equals(l.b)) {
return LevelPlayAdSize.LARGE;
}
} else if (adSize.equals(l.g)) {
return LevelPlayAdSize.MEDIUM_RECTANGLE;
}
throw new IllegalArgumentException("Wrong Ad Size");
}
public final LevelPlayAdSize createAdaptiveAdSize(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
return createAdaptiveAdSize$default(this, context, null, 2, null);
}
public final LevelPlayAdSize createAdaptiveAdSize(Context context, Integer num) {
Intrinsics.checkNotNullParameter(context, "context");
return new y2(new h1()).a(context, num);
}
public final LevelPlayAdSize createCustomBanner(int i, int i2) {
return createCustomSize(i, i2);
}
public final LevelPlayAdSize createCustomSize(int i, int i2) {
return new LevelPlayAdSize(i, i2, l.f, false, null, 16, null);
}
}
public LevelPlayAdSize(int i2, int i3, String str, boolean z, LevelPlayAdSize levelPlayAdSize) {
this.a = i2;
this.b = i3;
this.c = str;
this.d = z;
this.e = levelPlayAdSize;
}
public /* synthetic */ LevelPlayAdSize(int i2, int i3, String str, boolean z, LevelPlayAdSize levelPlayAdSize, int i4, DefaultConstructorMarker defaultConstructorMarker) {
this(i2, i3, (i4 & 4) != 0 ? null : str, z, (i4 & 16) != 0 ? null : levelPlayAdSize);
}
public static final LevelPlayAdSize createAdaptiveAdSize(Context context) {
return Companion.createAdaptiveAdSize(context);
}
public static final LevelPlayAdSize createAdaptiveAdSize(Context context, Integer num) {
return Companion.createAdaptiveAdSize(context, num);
}
public static final LevelPlayAdSize createCustomBanner(int i2, int i3) {
return Companion.createCustomBanner(i2, i3);
}
public static final LevelPlayAdSize createCustomSize(int i2, int i3) {
return Companion.createCustomSize(i2, i3);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!Intrinsics.areEqual(LevelPlayAdSize.class, obj != null ? obj.getClass() : null)) {
return false;
}
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type com.unity3d.mediation.LevelPlayAdSize");
LevelPlayAdSize levelPlayAdSize = (LevelPlayAdSize) obj;
return this.a == levelPlayAdSize.a && this.b == levelPlayAdSize.b && Intrinsics.areEqual(this.c, levelPlayAdSize.c);
}
public final String getDescription() {
return String.valueOf(this.c);
}
public final LevelPlayAdSize getFallbackAdSize$mediationsdk_release() {
return this.e;
}
public final int getHeight() {
return this.b;
}
public final int getWidth() {
return this.a;
}
public int hashCode() {
int i2 = ((this.a * 31) + this.b) * 31;
String str = this.c;
return i2 + (str != null ? str.hashCode() : 0);
}
public final boolean isAdaptive() {
return this.d;
}
public String toString() {
return this.c + ' ' + this.a + 'x' + this.b;
}
}