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

NotificationModel() public method

public NotificationModel ( Scraper.Notifier.HotItem item, NotifierRule rule, String message, System.DateTime timeStamp, NotificationType notificationType ) : System
item Scraper.Notifier.HotItem
rule NotifierRule
message String
timeStamp System.DateTime
notificationType NotificationType
return System
        public NotificationModel(HotItem item, NotifierRule rule, String message, DateTime timeStamp, NotificationType notificationType)
        {
            this.DataId = item.DataId;
            this.NotificationType = notificationType;
            this.TimeStamp = timeStamp;
            this.Message = message;
            this.Item = item;
            if (this.Item != null)
            {
                this.BuyMoney = item.BuyMoney;
                this.SellMoney = item.SellMoney;
            }
            this.Rule = rule;

            ApplyItemValues(item);
            // TODO: Refactoring, someday NotifierRule and NotificationModel must be merged together
        }

Same methods

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