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);
        }