Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EveNotificationText" /> class.
 /// </summary>
 /// <param name="notification">The notification.</param>
 /// <param name="typeID">The notification type ID.</param>
 /// <param name="text">The notification text.</param>
 /// <exception cref="System.ArgumentNullException">src</exception>
 public EveNotificationText(EveNotification notification, int typeID, string text)
 {
     NotificationID   = typeID;
     NotificationText = text;
     m_notification   = notification;
     m_parser         = EveNotificationTextParser.GetParser();
 }
Exemple #2
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();
        }
Exemple #3
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();
        }