Add JSON message writer

Closes #103
This commit is contained in:
Alexey Golub
2020-02-03 17:47:42 +02:00
parent 9fa40dca00
commit 9f6090b3af
9 changed files with 302 additions and 26 deletions

View File

@@ -18,6 +18,7 @@ namespace DiscordChatExporter.Core.Models
ExportFormat.HtmlDark => "html",
ExportFormat.HtmlLight => "html",
ExportFormat.Csv => "csv",
ExportFormat.Json => "json",
_ => throw new ArgumentOutOfRangeException(nameof(format))
};
@@ -28,6 +29,7 @@ namespace DiscordChatExporter.Core.Models
ExportFormat.HtmlDark => "HTML (Dark)",
ExportFormat.HtmlLight => "HTML (Light)",
ExportFormat.Csv => "Comma Separated Values (CSV)",
ExportFormat.Json => "JavaScript Object Notation (JSON)",
_ => throw new ArgumentOutOfRangeException(nameof(format))
};
}