package com.mbridge.msdk.splash.d; import com.ironsource.v8; import com.mbridge.msdk.foundation.entity.CampaignEx; import com.mbridge.msdk.foundation.same.report.i; import com.mbridge.msdk.foundation.tools.af; import com.mbridge.msdk.out.MBSplashShowListener; import com.mbridge.msdk.out.MBridgeIds; /* loaded from: classes4.dex */ public final class d { private MBSplashShowListener a; private CampaignEx b; private c c; public d(c cVar, MBSplashShowListener mBSplashShowListener, CampaignEx campaignEx) { this.c = cVar; this.a = mBSplashShowListener; this.b = campaignEx; } public final void a(MBridgeIds mBridgeIds) { c cVar = this.c; if (cVar != null) { cVar.a = true; } StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("load_to="); stringBuffer.append(this.c.b()); stringBuffer.append(v8.i.c); stringBuffer.append("allow_skip="); stringBuffer.append(this.c.c() ? 1 : 0); stringBuffer.append(v8.i.c); stringBuffer.append("countdown="); stringBuffer.append(this.c.d()); stringBuffer.append(v8.i.c); i.b(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, mBridgeIds.getUnitId(), stringBuffer.toString()); MBSplashShowListener mBSplashShowListener = this.a; if (mBSplashShowListener != null) { mBSplashShowListener.onShowSuccessed(mBridgeIds); } } public final void a(MBridgeIds mBridgeIds, String str) { c cVar = this.c; if (cVar != null) { cVar.a = false; } i.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, mBridgeIds.getUnitId(), str); MBSplashShowListener mBSplashShowListener = this.a; if (mBSplashShowListener != null) { mBSplashShowListener.onShowFailed(mBridgeIds, str); } } public final void b(MBridgeIds mBridgeIds) { MBSplashShowListener mBSplashShowListener = this.a; if (mBSplashShowListener != null) { mBSplashShowListener.onAdClicked(mBridgeIds); } } public final void a(MBridgeIds mBridgeIds, int i) { MBSplashShowListener mBSplashShowListener = this.a; if (mBSplashShowListener != null) { mBSplashShowListener.onDismiss(mBridgeIds, i); } c cVar = this.c; if (cVar != null) { cVar.a = false; } if (i == 6 || i == 4 || i == 5) { try { com.mbridge.msdk.splash.e.a.a(mBridgeIds.getUnitId(), i, this.b); } catch (Exception e) { af.b("SplashReport", e.getMessage()); } } } public final void a(MBridgeIds mBridgeIds, long j) { MBSplashShowListener mBSplashShowListener = this.a; if (mBSplashShowListener != null) { mBSplashShowListener.onAdTick(mBridgeIds, j); } } public final void a(MBridgeIds mBridgeIds, int i, int i2, int i3) { MBSplashShowListener mBSplashShowListener = this.a; if (mBSplashShowListener != null) { mBSplashShowListener.onZoomOutPlayStart(mBridgeIds); } try { i.b(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, mBridgeIds.getUnitId(), "flb_size=" + i2 + "x" + i + "&flb_type=" + i3 + v8.i.c); } catch (Exception e) { af.b("SplashReport", e.getMessage()); } } }