mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 08:46:44 +00:00
Add command line interface and change solution structure (#26)
This commit is contained in:
12
DiscordChatExporter.Gui/Messages/ShowErrorMessage.cs
Normal file
12
DiscordChatExporter.Gui/Messages/ShowErrorMessage.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace DiscordChatExporter.Gui.Messages
|
||||
{
|
||||
public class ShowErrorMessage
|
||||
{
|
||||
public string Message { get; }
|
||||
|
||||
public ShowErrorMessage(string message)
|
||||
{
|
||||
Message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
DiscordChatExporter.Gui/Messages/ShowExportDoneMessage.cs
Normal file
12
DiscordChatExporter.Gui/Messages/ShowExportDoneMessage.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace DiscordChatExporter.Gui.Messages
|
||||
{
|
||||
public class ShowExportDoneMessage
|
||||
{
|
||||
public string FilePath { get; }
|
||||
|
||||
public ShowExportDoneMessage(string filePath)
|
||||
{
|
||||
FilePath = filePath;
|
||||
}
|
||||
}
|
||||
}
|
||||
17
DiscordChatExporter.Gui/Messages/ShowExportSetupMessage.cs
Normal file
17
DiscordChatExporter.Gui/Messages/ShowExportSetupMessage.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using DiscordChatExporter.Core.Models;
|
||||
|
||||
namespace DiscordChatExporter.Gui.Messages
|
||||
{
|
||||
public class ShowExportSetupMessage
|
||||
{
|
||||
public Guild Guild { get; }
|
||||
|
||||
public Channel Channel { get; }
|
||||
|
||||
public ShowExportSetupMessage(Guild guild, Channel channel)
|
||||
{
|
||||
Guild = guild;
|
||||
Channel = channel;
|
||||
}
|
||||
}
|
||||
}
|
||||
6
DiscordChatExporter.Gui/Messages/ShowSettingsMessage.cs
Normal file
6
DiscordChatExporter.Gui/Messages/ShowSettingsMessage.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace DiscordChatExporter.Gui.Messages
|
||||
{
|
||||
public class ShowSettingsMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
28
DiscordChatExporter.Gui/Messages/StartExportMessage.cs
Normal file
28
DiscordChatExporter.Gui/Messages/StartExportMessage.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using DiscordChatExporter.Core.Models;
|
||||
|
||||
namespace DiscordChatExporter.Gui.Messages
|
||||
{
|
||||
public class StartExportMessage
|
||||
{
|
||||
public Channel Channel { get; }
|
||||
|
||||
public string FilePath { get; }
|
||||
|
||||
public ExportFormat Format { get; }
|
||||
|
||||
public DateTime? From { get; }
|
||||
|
||||
public DateTime? To { get; }
|
||||
|
||||
public StartExportMessage(Channel channel, string filePath, ExportFormat format,
|
||||
DateTime? from, DateTime? to)
|
||||
{
|
||||
Channel = channel;
|
||||
FilePath = filePath;
|
||||
Format = format;
|
||||
From = from;
|
||||
To = to;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user