Пример #1
0
 public CleanedChatlogItem(System.DateTime timestamp, FFXIVChatChannel channel, string source, string message)
 {
     Timestamp = timestamp;
     Channel   = channel;
     Source    = source ?? throw new System.ArgumentNullException(nameof(source));
     Message   = message ?? throw new System.ArgumentNullException(nameof(message));
 }
Пример #2
0
 public static ChannelData GetChannel(FFXIVChatChannel clientChannel)
 {
     if (ClientMapping.TryGetValue(clientChannel, out var channelData))
     {
         return(channelData);
     }
     return(GetChannel(ChatChannel.None));
 }
Пример #3
0
        public static ChannelData GetChannel(FFXIVChatChannel clientChannel)
        {
            if (ClientMapping.TryGetValue(clientChannel, out var channelData))
            {
                return(channelData);
            }

            logger.Debug(() => $"No channel mapping for: {clientChannel}");
            return(GetChannel(ChatChannel.None));
        }
Пример #4
0
 private static ChannelData Map(ChatChannel chatChannel, FFXIVChatChannel clientChannel, bool relevant = true, string translationId = null, string configId = null)
 {
     return(Map(chatChannel: chatChannel, clientChannel: new[] { clientChannel }, relevant: relevant, translationId: translationId, configId: configId));
 }