- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
169 lines
5.0 KiB
Java
169 lines
5.0 KiB
Java
package com.ironsource;
|
|
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class c7 {
|
|
public static final a c = new a(null);
|
|
private final b a;
|
|
private final c6 b;
|
|
|
|
public static final class a {
|
|
|
|
/* renamed from: com.ironsource.c7$a$a, reason: collision with other inner class name */
|
|
public /* synthetic */ class C0167a {
|
|
public static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[c.values().length];
|
|
try {
|
|
iArr[c.TIMED_LOAD.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[c.TIMED_SHOW.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
a = iArr;
|
|
}
|
|
}
|
|
|
|
private a() {
|
|
}
|
|
|
|
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final c7 a(k1 adTools, p6 bannerContainer, b config, c6 bannerAdProperties, d7 bannerStrategyListener, g6 createBannerAdUnitFactory) {
|
|
Intrinsics.checkNotNullParameter(adTools, "adTools");
|
|
Intrinsics.checkNotNullParameter(bannerContainer, "bannerContainer");
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(bannerAdProperties, "bannerAdProperties");
|
|
Intrinsics.checkNotNullParameter(bannerStrategyListener, "bannerStrategyListener");
|
|
Intrinsics.checkNotNullParameter(createBannerAdUnitFactory, "createBannerAdUnitFactory");
|
|
int i = C0167a.a[config.e().ordinal()];
|
|
if (i == 1) {
|
|
return new kt(adTools, bannerContainer, config, bannerAdProperties, bannerStrategyListener, createBannerAdUnitFactory);
|
|
}
|
|
if (i == 2) {
|
|
return new lt(adTools, bannerContainer, config, bannerAdProperties, bannerStrategyListener, createBannerAdUnitFactory);
|
|
}
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
}
|
|
|
|
public static final class b {
|
|
private final c a;
|
|
private final long b;
|
|
private final boolean c;
|
|
|
|
public b(c strategyType, long j, boolean z) {
|
|
Intrinsics.checkNotNullParameter(strategyType, "strategyType");
|
|
this.a = strategyType;
|
|
this.b = j;
|
|
this.c = z;
|
|
}
|
|
|
|
public static /* synthetic */ b a(b bVar, c cVar, long j, boolean z, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
cVar = bVar.a;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
j = bVar.b;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
z = bVar.c;
|
|
}
|
|
return bVar.a(cVar, j, z);
|
|
}
|
|
|
|
public final b a(c strategyType, long j, boolean z) {
|
|
Intrinsics.checkNotNullParameter(strategyType, "strategyType");
|
|
return new b(strategyType, j, z);
|
|
}
|
|
|
|
public final c a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final long b() {
|
|
return this.b;
|
|
}
|
|
|
|
public final boolean c() {
|
|
return this.c;
|
|
}
|
|
|
|
public final long d() {
|
|
return this.b;
|
|
}
|
|
|
|
public final c e() {
|
|
return this.a;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof b)) {
|
|
return false;
|
|
}
|
|
b bVar = (b) obj;
|
|
return this.a == bVar.a && this.b == bVar.b && this.c == bVar.c;
|
|
}
|
|
|
|
public final boolean f() {
|
|
return this.c;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public int hashCode() {
|
|
int hashCode = ((this.a.hashCode() * 31) + Long.hashCode(this.b)) * 31;
|
|
boolean z = this.c;
|
|
int i = z;
|
|
if (z != 0) {
|
|
i = 1;
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public String toString() {
|
|
return "Config(strategyType=" + this.a + ", refreshInterval=" + this.b + ", isAutoRefreshEnabled=" + this.c + ')';
|
|
}
|
|
}
|
|
|
|
public enum c {
|
|
TIMED_LOAD,
|
|
TIMED_SHOW
|
|
}
|
|
|
|
public c7(b config, c6 bannerAdProperties) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(bannerAdProperties, "bannerAdProperties");
|
|
this.a = config;
|
|
this.b = bannerAdProperties;
|
|
}
|
|
|
|
public abstract void a();
|
|
|
|
public final long b() {
|
|
Long i = this.b.i();
|
|
return i != null ? i.longValue() : this.a.d();
|
|
}
|
|
|
|
public final boolean c() {
|
|
Boolean h = this.b.h();
|
|
return h != null ? h.booleanValue() : this.a.f();
|
|
}
|
|
|
|
public abstract void d();
|
|
|
|
public abstract void e();
|
|
|
|
public abstract void f();
|
|
}
|