- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
59 lines
1.6 KiB
Java
59 lines
1.6 KiB
Java
package com.applovin.sdk;
|
|
|
|
import com.ironsource.mediationsdk.l;
|
|
import java.util.Locale;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class AppLovinAdSize {
|
|
public static final int SPAN = -1;
|
|
private final String a;
|
|
private final int b;
|
|
private final int c;
|
|
public static final AppLovinAdSize BANNER = new AppLovinAdSize(-1, 50, l.a);
|
|
public static final AppLovinAdSize LEADER = new AppLovinAdSize(-1, 90, "LEADER");
|
|
public static final AppLovinAdSize MREC = new AppLovinAdSize(300, 250, "MREC");
|
|
public static final AppLovinAdSize INTERSTITIAL = new AppLovinAdSize(-1, -1, "INTER");
|
|
public static final AppLovinAdSize NATIVE = new AppLovinAdSize(-1, -1, "NATIVE");
|
|
|
|
private AppLovinAdSize(int i, int i2, String str) {
|
|
this.b = i;
|
|
this.c = i2;
|
|
this.a = str;
|
|
}
|
|
|
|
public static AppLovinAdSize fromString(String str) {
|
|
if (l.a.equalsIgnoreCase(str)) {
|
|
return BANNER;
|
|
}
|
|
if ("MREC".equalsIgnoreCase(str)) {
|
|
return MREC;
|
|
}
|
|
if ("LEADER".equalsIgnoreCase(str)) {
|
|
return LEADER;
|
|
}
|
|
if ("INTERSTITIAL".equalsIgnoreCase(str) || "INTER".equalsIgnoreCase(str)) {
|
|
return INTERSTITIAL;
|
|
}
|
|
if ("NATIVE".equalsIgnoreCase(str)) {
|
|
return NATIVE;
|
|
}
|
|
throw new IllegalArgumentException("Unknown Ad Size: " + str);
|
|
}
|
|
|
|
public int getHeight() {
|
|
return this.c;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return this.a.toUpperCase(Locale.ENGLISH);
|
|
}
|
|
|
|
public int getWidth() {
|
|
return this.b;
|
|
}
|
|
|
|
public String toString() {
|
|
return getLabel();
|
|
}
|
|
}
|