mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-01 07:39:12 +00:00
33 lines
831 B
C#
33 lines
831 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace DiscordChatExporter.Core.Models
|
|
{
|
|
public class ChatLog
|
|
{
|
|
public Guild Guild { get; }
|
|
|
|
public Channel Channel { get; }
|
|
|
|
public DateTime? From { get; }
|
|
|
|
public DateTime? To { get; }
|
|
|
|
public IReadOnlyList<Message> Messages { get; }
|
|
|
|
public Mentionables Mentionables { get; }
|
|
|
|
public ChatLog(Guild guild, Channel channel, DateTime? from, DateTime? to,
|
|
IReadOnlyList<Message> messages, Mentionables mentionables)
|
|
{
|
|
Guild = guild;
|
|
Channel = channel;
|
|
From = from;
|
|
To = to;
|
|
Messages = messages;
|
|
Mentionables = mentionables;
|
|
}
|
|
|
|
public override string ToString() => $"{Guild.Name} | {Channel.Name}";
|
|
}
|
|
} |