Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogEntry chatLogEntry)
 {
     Timestamp = timeStamp;
     EventCode = eventCode;
     ChatLogEntry = chatLogEntry;
 }
Ejemplo n.º 4
0
 public Event(EventCode eventCode = null, ChatLogEntry chatLogEntry = null)
 {
     Initialize(DateTime.Now, eventCode, chatLogEntry);
 }
Ejemplo n.º 5
0
 public Event(EventCode eventCode = null, ChatLogItem chatLogItem = null) {
     this.Initialize(DateTime.Now, eventCode, chatLogItem);
 }
Ejemplo n.º 6
0
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogItem chatLogItem) {
     this.Timestamp = timeStamp;
     this.EventCode = eventCode;
     this.ChatLogItem = chatLogItem;
 }
Ejemplo n.º 7
0
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogEntry chatLogEntry)
 {
     Timestamp    = timeStamp;
     EventCode    = eventCode;
     ChatLogEntry = chatLogEntry;
 }
Ejemplo n.º 8
0
 public Event(EventCode eventCode = null, ChatLogEntry chatLogEntry = null)
 {
     Initialize(DateTime.Now, eventCode, chatLogEntry);
 }
Ejemplo n.º 9
0
 /// <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);
 }