static void CallbackBanner(Yodo1U3dAdEvent adEvent, Yodo1U3dAdError error) { if (_bannerDelegate != null) { switch (adEvent) { case Yodo1U3dAdEvent.AdOpened: _bannerDelegate(Yodo1U3dConstants.AdEvent.AdEventShowSuccess, null); break; case Yodo1U3dAdEvent.AdClosed: _bannerDelegate(Yodo1U3dConstants.AdEvent.AdEventClose, null); break; case Yodo1U3dAdEvent.AdError: _bannerDelegate(Yodo1U3dConstants.AdEvent.AdEventShowFail, error.ToString()); break; } } }
static void CallbackVideo(Yodo1U3dAdEvent adEvent, Yodo1U3dAdError error) { if (_rewardVideoDelegate != null) { switch (adEvent) { case Yodo1U3dAdEvent.AdOpened: _rewardVideoDelegate(Yodo1U3dConstants.AdEvent.AdEventShowSuccess, null); break; case Yodo1U3dAdEvent.AdClosed: _rewardVideoDelegate(Yodo1U3dConstants.AdEvent.AdEventClose, null); break; case Yodo1U3dAdEvent.AdError: _rewardVideoDelegate(Yodo1U3dConstants.AdEvent.AdEventShowFail, error.ToString()); break; case Yodo1U3dAdEvent.AdReward: _rewardVideoDelegate(Yodo1U3dConstants.AdEvent.AdEventFinish, null); break; } } }