|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
@ -11,22 +10,6 @@ namespace DiscordChatExporter.Services
|
|
|
|
|
{
|
|
|
|
|
public class ExportService
|
|
|
|
|
{
|
|
|
|
|
private class MessageGroup
|
|
|
|
|
{
|
|
|
|
|
public User Author { get; }
|
|
|
|
|
|
|
|
|
|
public DateTime FirstTimeStamp { get; }
|
|
|
|
|
|
|
|
|
|
public IReadOnlyList<Message> Messages { get; }
|
|
|
|
|
|
|
|
|
|
public MessageGroup(User author, DateTime firstTimeStamp, IEnumerable<Message> messages)
|
|
|
|
|
{
|
|
|
|
|
Author = author;
|
|
|
|
|
FirstTimeStamp = firstTimeStamp;
|
|
|
|
|
Messages = messages.ToArray();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private HtmlDocument GetTemplate()
|
|
|
|
|
{
|
|
|
|
|
const string templateName = "DiscordChatExporter.Services.ExportTemplate.html";
|
|
|
|
|