Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EveNotificationText" /> class.
        /// </summary>
        /// <param name="notification">The notification.</param>
        /// <param name="src">The source.</param>
        /// <exception cref="System.ArgumentNullException">src</exception>
        public EveNotificationText(EveNotification notification, SerializableNotificationTextsListItem src)
        {
            src.ThrowIfNull(nameof(src));

            NotificationID   = src.NotificationID;
            NotificationText = src.NotificationText;
            m_notification   = notification;
            m_parser         = EveNotificationTextParser.GetParser();
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EveNotificationText"/> class.
 /// </summary>
 /// <param name="src">The SRC.</param>
 public EveNotificationText(SerializableNotificationTextsListItem src)
 {
     NotificationID   = src.NotificationID;
     NotificationText = src.NotificationText.Normalize().ModifyBreakLines();
 }