/// <summary>
        /// </summary>
        /// <param name="chatLogEntry"></param>
        /// <returns></returns>
        private Event Parse(ChatLogEntry chatLogEntry)
        {
            EventCode eventCode;
            var       code = Convert.ToUInt64(chatLogEntry.Code, 16);

            if (EventCodes.TryGetValue(code, out eventCode))
            {
                return(new Event(eventCode, chatLogEntry));
            }
            var unknownEventCode = new EventCode
            {
                Code = code
            };

            return(new Event(unknownEventCode, chatLogEntry));
        }
Beispiel #2
0
        /// <summary>
        /// </summary>
        /// <param name="chatLogItem"></param>
        /// <returns></returns>
        private Event Parse(ChatLogItem chatLogItem)
        {
            EventCode eventCode;
            var       code = Convert.ToUInt64(chatLogItem.Code, 16);

            if (this.EventCodes.TryGetValue(code, out eventCode))
            {
                return(new Event(eventCode, chatLogItem));
            }

            var unknownEventCode = new EventCode {
                Code = code,
            };

            return(new Event(unknownEventCode, chatLogItem));
        }
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogEntry chatLogEntry)
 {
     Timestamp = timeStamp;
     EventCode = eventCode;
     ChatLogEntry = chatLogEntry;
 }
 public Event(EventCode eventCode = null, ChatLogEntry chatLogEntry = null)
 {
     Initialize(DateTime.Now, eventCode, chatLogEntry);
 }
Beispiel #5
0
 public Event(EventCode eventCode = null, ChatLogItem chatLogItem = null) {
     this.Initialize(DateTime.Now, eventCode, chatLogItem);
 }
Beispiel #6
0
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogItem chatLogItem) {
     this.Timestamp = timeStamp;
     this.EventCode = eventCode;
     this.ChatLogItem = chatLogItem;
 }
Beispiel #7
0
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogEntry chatLogEntry)
 {
     Timestamp    = timeStamp;
     EventCode    = eventCode;
     ChatLogEntry = chatLogEntry;
 }
Beispiel #8
0
 public Event(EventCode eventCode = null, ChatLogEntry chatLogEntry = null)
 {
     Initialize(DateTime.Now, eventCode, chatLogEntry);
 }
 /// <summary>
 /// </summary>
 /// <param name="chatLogEntry"></param>
 /// <returns></returns>
 private Event Parse(ChatLogEntry chatLogEntry)
 {
     EventCode eventCode;
     var code = Convert.ToUInt64(chatLogEntry.Code, 16);
     if (EventCodes.TryGetValue(code, out eventCode))
     {
         return new Event(eventCode, chatLogEntry);
     }
     var unknownEventCode = new EventCode
     {
         Code = code
     };
     return new Event(unknownEventCode, chatLogEntry);
 }