/// <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)); }
/// <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); }
public Event(EventCode eventCode = null, ChatLogItem chatLogItem = null) { this.Initialize(DateTime.Now, eventCode, chatLogItem); }
private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogItem chatLogItem) { this.Timestamp = timeStamp; this.EventCode = eventCode; this.ChatLogItem = chatLogItem; }
/// <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); }