Example #1
0
        internal AdvertisementEventViewModel(string addId, bool skipped, AdActions action, bool firstTime,
                                             AdFailShowReasons failShowReason, int duration, string sdkName, AdTypes type, string placement, double amount)
        {
            AddId          = addId;
            Skipped        = skipped;
            Action         = action;
            FirstTime      = firstTime;
            FailShowReason = failShowReason;
            Duration       = duration;
            SDKName        = sdkName;
            Type           = type;
            Placement      = placement;
            Amount         = amount;

            DeviceInfo.WriteBaseEventDataViewModel(this.GetType().Name, this);
            Broker.AdvertisementEventCreated(this);
        }
Example #2
0
 /// <summary>Call PROBA Advertisement event</summary>
 public static void AdvertisementEvent(string addId, bool skipped, AdActions action, bool firstTime = false,
                                       AdFailShowReasons failShowReason = AdFailShowReasons.Unknown, int duration = 0, string sdkName = "", AdTypes type = AdTypes.RewardedVideo, string placement = "", double amount = 0.0)
 {
     _ = new AdvertisementEventViewModel(addId, skipped, action, firstTime, failShowReason, duration, sdkName, type, placement, amount);
 }