ZicoresTradingPostNotifier.Model.NotificationModel.NotificationModel C# (CSharp) Method

NotificationModel() public method

public NotificationModel ( Scraper.Notifier.GemManager gemManager, Scraper.Notifier.GemRuleViewModel item, NotifierRule rule, String message, System.DateTime timeStamp, NotificationType notificationType ) : System
gemManager Scraper.Notifier.GemManager
item Scraper.Notifier.GemRuleViewModel
rule NotifierRule
message String
timeStamp System.DateTime
notificationType NotificationType
return System
        public NotificationModel(GemManager gemManager, GemRuleViewModel item, NotifierRule rule, String message, DateTime timeStamp, NotificationType notificationType)
        {
            this.DataId = 0;
            this.IsGemNotification = true;
            this.NotificationType = notificationType;
            this.TimeStamp = timeStamp;
            this.Message = message;
            if (gemManager != null)
            {
                this.BuyMoney = gemManager.BuyGemPriceMoney;
                this.SellMoney = gemManager.BuyGoldPriceMoney;
            }

            this.Rule = rule;

            if (NotificationType == NotificationType.BuyGems)
            {

            }
            else if (NotificationType == NotificationType.BuyGold)
            {
                this.DataId = -1;
            }
            Name = message;
        }

Same methods

NotificationModel::NotificationModel ( Scraper.Notifier.HotItem item, NotifierRule rule, String message, System.DateTime timeStamp, NotificationType notificationType ) : System