mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-14 07:04:24 -04:00
Rename ExportService.Export to ExportChatLog for consistency
This commit is contained in:
parent
52684c264f
commit
ba27a9f909
4 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ namespace DiscordChatExporter.Cli.Verbs
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export
|
// Export
|
||||||
exportService.Export(chatLog, filePath, Options.ExportFormat);
|
exportService.ExportChatLog(chatLog, filePath, Options.ExportFormat);
|
||||||
|
|
||||||
// Print result
|
// Print result
|
||||||
Console.WriteLine($"Exported chat to [{filePath}]");
|
Console.WriteLine($"Exported chat to [{filePath}]");
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace DiscordChatExporter.Core.Services
|
||||||
_settingsService = settingsService;
|
_settingsService = settingsService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Export(ChatLog chatLog, string filePath, ExportFormat format)
|
public void ExportChatLog(ChatLog chatLog, string filePath, ExportFormat format)
|
||||||
{
|
{
|
||||||
// Create template loader
|
// Create template loader
|
||||||
var loader = new TemplateLoader();
|
var loader = new TemplateLoader();
|
||||||
|
|
|
@ -4,6 +4,6 @@ namespace DiscordChatExporter.Core.Services
|
||||||
{
|
{
|
||||||
public interface IExportService
|
public interface IExportService
|
||||||
{
|
{
|
||||||
void Export(ChatLog chatLog, string filePath, ExportFormat format);
|
void ExportChatLog(ChatLog chatLog, string filePath, ExportFormat format);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -260,7 +260,7 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||||
var chatLog = await _chatLogService.GetChatLogAsync(token, guild, channel, from, to, progressHandler);
|
var chatLog = await _chatLogService.GetChatLogAsync(token, guild, channel, from, to, progressHandler);
|
||||||
|
|
||||||
// Export
|
// Export
|
||||||
_exportService.Export(chatLog, filePath, format);
|
_exportService.ExportChatLog(chatLog, filePath, format);
|
||||||
|
|
||||||
// Open
|
// Open
|
||||||
Process.Start(filePath);
|
Process.Start(filePath);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue