Esempio n. 1
0
 /// <summary>
 /// Constructor from the API.
 /// </summary>
 /// <param name="src"></param>
 internal EveNotification(CCPCharacter ccpCharacter, SerializableNotificationsListItem src)
 {
     m_ccpCharacter = ccpCharacter;
     NotificationID = src.NotificationID;
     Type           = EveNotificationType.GetType(src.TypeID);
     Sender         = GetIDToName(src.SenderID);
     SentDate       = src.SentDate;
     Recipient      = GetRecipient();
 }
Esempio n. 2
0
        /// <summary>
        /// Constructor from the API.
        /// </summary>
        /// <param name="ccpCharacter">The CCP character.</param>
        /// <param name="src">The source.</param>
        internal EveNotification(CCPCharacter ccpCharacter, SerializableNotificationsListItem src)
        {
            m_ccpCharacter = ccpCharacter;

            NotificationID = src.NotificationID;
            TypeID         = src.TypeID;
            m_typeName     = EveNotificationType.GetName(src.TypeID);
            SenderName     = src.SenderName;
            SentDate       = src.SentDate;
            Recipient      = new List <string> {
                ccpCharacter.Name
            };
            EVENotificationText = new EveNotificationText(this, new SerializableNotificationTextsListItem
            {
                NotificationID   = 0,
                NotificationText = String.Empty,
            });
        }