Add csv exporting (#44)

This commit is contained in:
Tim van den Essen
2018-04-15 15:52:02 +02:00
committed by Alexey Golub
parent e0284e281c
commit e1e8c73613
5 changed files with 97 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
{
PlainText,
HtmlDark,
HtmlLight
HtmlLight,
Csv
}
}

View File

@@ -12,6 +12,8 @@ namespace DiscordChatExporter.Core.Models
return "html";
if (format == ExportFormat.HtmlLight)
return "html";
if (format == ExportFormat.Csv)
return "csv";
throw new ArgumentOutOfRangeException(nameof(format));
}
@@ -24,6 +26,8 @@ namespace DiscordChatExporter.Core.Models
return "HTML (Dark)";
if (format == ExportFormat.HtmlLight)
return "HTML (Light)";
if (format == ExportFormat.Csv)
return "Comma Seperated Values (CSV)";
throw new ArgumentOutOfRangeException(nameof(format));
}