From ba27a9f9097dec976cce1e7f6a5c1b38bb54b180 Mon Sep 17 00:00:00 2001 From: Oleksii Holub Date: Wed, 31 Oct 2018 17:54:13 +0200 Subject: [PATCH] Rename ExportService.Export to ExportChatLog for consistency --- DiscordChatExporter.Cli/Verbs/ExportChatVerb.cs | 2 +- DiscordChatExporter.Core/Services/ExportService.cs | 2 +- DiscordChatExporter.Core/Services/IExportService.cs | 2 +- DiscordChatExporter.Gui/ViewModels/MainViewModel.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DiscordChatExporter.Cli/Verbs/ExportChatVerb.cs b/DiscordChatExporter.Cli/Verbs/ExportChatVerb.cs index 1883beb..8761da2 100644 --- a/DiscordChatExporter.Cli/Verbs/ExportChatVerb.cs +++ b/DiscordChatExporter.Cli/Verbs/ExportChatVerb.cs @@ -42,7 +42,7 @@ namespace DiscordChatExporter.Cli.Verbs } // Export - exportService.Export(chatLog, filePath, Options.ExportFormat); + exportService.ExportChatLog(chatLog, filePath, Options.ExportFormat); // Print result Console.WriteLine($"Exported chat to [{filePath}]"); diff --git a/DiscordChatExporter.Core/Services/ExportService.cs b/DiscordChatExporter.Core/Services/ExportService.cs index 6b74da8..d0e85f7 100644 --- a/DiscordChatExporter.Core/Services/ExportService.cs +++ b/DiscordChatExporter.Core/Services/ExportService.cs @@ -15,7 +15,7 @@ namespace DiscordChatExporter.Core.Services _settingsService = settingsService; } - public void Export(ChatLog chatLog, string filePath, ExportFormat format) + public void ExportChatLog(ChatLog chatLog, string filePath, ExportFormat format) { // Create template loader var loader = new TemplateLoader(); diff --git a/DiscordChatExporter.Core/Services/IExportService.cs b/DiscordChatExporter.Core/Services/IExportService.cs index c4f8ea1..92105e8 100644 --- a/DiscordChatExporter.Core/Services/IExportService.cs +++ b/DiscordChatExporter.Core/Services/IExportService.cs @@ -4,6 +4,6 @@ namespace DiscordChatExporter.Core.Services { public interface IExportService { - void Export(ChatLog chatLog, string filePath, ExportFormat format); + void ExportChatLog(ChatLog chatLog, string filePath, ExportFormat format); } } \ No newline at end of file diff --git a/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs b/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs index 6554bc1..6aa8a73 100644 --- a/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs @@ -260,7 +260,7 @@ namespace DiscordChatExporter.Gui.ViewModels var chatLog = await _chatLogService.GetChatLogAsync(token, guild, channel, from, to, progressHandler); // Export - _exportService.Export(chatLog, filePath, format); + _exportService.ExportChatLog(chatLog, filePath, format); // Open Process.Start(filePath);