コード例 #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));
        }
コード例 #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));
        }
コード例 #3
0
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogEntry chatLogEntry)
 {
     Timestamp = timeStamp;
     EventCode = eventCode;
     ChatLogEntry = chatLogEntry;
 }
コード例 #4
0
 public Event(EventCode eventCode = null, ChatLogEntry chatLogEntry = null)
 {
     Initialize(DateTime.Now, eventCode, chatLogEntry);
 }
コード例 #5
0
ファイル: Event.cs プロジェクト: teast/ffxivapp-plugin-parse
 public Event(EventCode eventCode = null, ChatLogItem chatLogItem = null) {
     this.Initialize(DateTime.Now, eventCode, chatLogItem);
 }
コード例 #6
0
ファイル: Event.cs プロジェクト: teast/ffxivapp-plugin-parse
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogItem chatLogItem) {
     this.Timestamp = timeStamp;
     this.EventCode = eventCode;
     this.ChatLogItem = chatLogItem;
 }
コード例 #7
0
 private void Initialize(DateTime timeStamp, EventCode eventCode, ChatLogEntry chatLogEntry)
 {
     Timestamp    = timeStamp;
     EventCode    = eventCode;
     ChatLogEntry = chatLogEntry;
 }
コード例 #8
0
 public Event(EventCode eventCode = null, ChatLogEntry chatLogEntry = null)
 {
     Initialize(DateTime.Now, eventCode, chatLogEntry);
 }
コード例 #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);
 }