- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
274 lines
7.8 KiB
Java
274 lines
7.8 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.environment.thread.IronSourceThreadManager;
|
|
import com.ironsource.mediationsdk.adunit.adapter.utility.AdInfo;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.logger.IronSourceError;
|
|
import com.ironsource.mediationsdk.sdk.LevelPlayBannerListener;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class m5 extends n7 {
|
|
private static final m5 d = new m5();
|
|
private LevelPlayBannerListener b = null;
|
|
private LevelPlayBannerListener c = null;
|
|
|
|
public class a implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public a(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.b != null) {
|
|
m5.this.b.onAdLeftApplication(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdLeftApplication() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class b implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public b(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.c != null) {
|
|
m5.this.c.onAdClicked(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdClicked() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class c implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public c(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.b != null) {
|
|
m5.this.b.onAdClicked(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdClicked() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class d implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public d(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.c != null) {
|
|
m5.this.c.onAdLoaded(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdLoaded() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class e implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public e(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.b != null) {
|
|
m5.this.b.onAdLoaded(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdLoaded() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class f implements Runnable {
|
|
final /* synthetic */ IronSourceError a;
|
|
|
|
public f(IronSourceError ironSourceError) {
|
|
this.a = ironSourceError;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.c != null) {
|
|
m5.this.c.onAdLoadFailed(this.a);
|
|
IronLog.CALLBACK.info("onAdLoadFailed() error = " + this.a.getErrorMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public class g implements Runnable {
|
|
final /* synthetic */ IronSourceError a;
|
|
|
|
public g(IronSourceError ironSourceError) {
|
|
this.a = ironSourceError;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.b != null) {
|
|
m5.this.b.onAdLoadFailed(this.a);
|
|
IronLog.CALLBACK.info("onAdLoadFailed() error = " + this.a.getErrorMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public class h implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public h(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.c != null) {
|
|
m5.this.c.onAdScreenPresented(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdScreenPresented() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class i implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public i(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.b != null) {
|
|
m5.this.b.onAdScreenPresented(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdScreenPresented() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class j implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public j(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.c != null) {
|
|
m5.this.c.onAdScreenDismissed(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdScreenDismissed() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class k implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public k(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.b != null) {
|
|
m5.this.b.onAdScreenDismissed(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdScreenDismissed() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class l implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public l(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (m5.this.c != null) {
|
|
m5.this.c.onAdLeftApplication(m5.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdLeftApplication() adInfo = " + m5.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
private m5() {
|
|
}
|
|
|
|
public static m5 a() {
|
|
return d;
|
|
}
|
|
|
|
public void a(IronSourceError ironSourceError) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new f(ironSourceError));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new g(ironSourceError));
|
|
}
|
|
}
|
|
|
|
public void a(LevelPlayBannerListener levelPlayBannerListener) {
|
|
this.b = levelPlayBannerListener;
|
|
}
|
|
|
|
public LevelPlayBannerListener b() {
|
|
return this.b;
|
|
}
|
|
|
|
public void b(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new b(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new c(adInfo));
|
|
}
|
|
}
|
|
|
|
public void b(LevelPlayBannerListener levelPlayBannerListener) {
|
|
this.c = levelPlayBannerListener;
|
|
}
|
|
|
|
public void c(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new l(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new a(adInfo));
|
|
}
|
|
}
|
|
|
|
public void d(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new d(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new e(adInfo));
|
|
}
|
|
}
|
|
|
|
public void e(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new j(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new k(adInfo));
|
|
}
|
|
}
|
|
|
|
public void f(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new h(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new i(adInfo));
|
|
}
|
|
}
|
|
}
|