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)); }
public static ChannelData GetChannel(FFXIVChatChannel clientChannel) { if (ClientMapping.TryGetValue(clientChannel, out var channelData)) { return(channelData); } return(GetChannel(ChatChannel.None)); }
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)); }
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)); }