コード例 #1
0
        public void CreateNotification(NodeAddedEvent e, SpecialOfferNotificationNode notification)
        {
            NotificationMessageComponent component = new NotificationMessageComponent {
                Message = string.Format(notification.paymentNotificationText.MessageTemplate, notification.specialOfferNotification.OfferName)
            };

            notification.Entity.AddComponent(component);
        }
コード例 #2
0
        public void CreateMessage(NodeAddedEvent e, NotificationWithoutGroupNode notification)
        {
            NotificationMessageComponent component = new NotificationMessageComponent {
                Message = notification.newItemNotificationText.HeaderText
            };

            notification.Entity.AddComponent(component);
        }
コード例 #3
0
        public void CreateNotification(NodeAddedEvent e, SaleEndNotificationNode notification)
        {
            NotificationMessageComponent component = new NotificationMessageComponent {
                Message = string.Format(notification.saleEndNotificationText.Message, new object[0])
            };

            notification.Entity.AddComponent(component);
        }