Esempio n. 1
0
 void Handler_AdTrackingEventOccurred(object sender, AdTrackingEventEventArgs e)
 {
     if (AdTrackingEventOccurred != null)
     {
         AdTrackingEventOccurred(this, e);
     }
 }
        void adHandlerController_AdTrackingEventOccurred(object sender, AdTrackingEventEventArgs e)
        {
            if (LogCreated != null)
            {
                var adLog = CreateAdLog(e);

                LogCreated(this, new LogEventArgs(adLog));
            } 
        }
        void adHandlerBase_AdTrackingEventOccurred(object sender, AdTrackingEventEventArgs e)
        {
            if (AdTrackingEventOccurred != null)
            {
                if (Player != null)
                    e.CurrentPosition = Player.CurrentPosition;

                AdTrackingEventOccurred(this, e);
            }
        }
        void VpaidController_AdTrackingEventOccurred(object sender, AdTrackingEventEventArgs e)
        {
            if (AdTrackingEventOccurred != null)
            {
                if (Player != null)
                    e.CurrentPosition = Player.CurrentPosition;

                AdTrackingEventOccurred(this, e);
            }
        }
        void adHandlerBase_AdTrackingEventOccurred(object sender, AdTrackingEventEventArgs e)
        {
            if (AdTrackingEventOccurred != null)
            {
                if (Player != null)
                {
                    e.CurrentPosition = Player.CurrentPosition;
                }

                AdTrackingEventOccurred(this, e);
            }
        }
        void VpaidController_AdTrackingEventOccurred(object sender, AdTrackingEventEventArgs e)
        {
            if (AdTrackingEventOccurred != null)
            {
                if (Player != null)
                {
                    e.CurrentPosition = Player.CurrentPosition;
                }

                AdTrackingEventOccurred(this, e);
            }
        }
        AdEventLog CreateAdLog(AdTrackingEventEventArgs e)
        {
            var adLog = new AdEventLog();
            adLog.TrackingType = e.TrackingType;
            adLog.CurrentPosition = e.CurrentPosition;

            var creativeSource = e.CreativeSource;

            if (creativeSource != null)
            {
                adLog.MediaSource = creativeSource.MediaSource;
                adLog.CreativeExtraInfo = creativeSource.ExtraInfo;
                adLog.MediaSourceType = creativeSource.MediaSourceType;
                adLog.CreativeSourceType = creativeSource.Type;
                adLog.CreativeId = creativeSource.Id;
            }

            return adLog;
        }
 void Handler_AdTrackingEventOccurred(object sender, AdTrackingEventEventArgs e)
 {
     if (AdTrackingEventOccurred != null) AdTrackingEventOccurred(this, e);
 }