mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
33 lines
763 B
C#
33 lines
763 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace DiscordChatExporter.Models
|
|
{
|
|
public class Message
|
|
{
|
|
public string Id { get; }
|
|
|
|
public DateTime TimeStamp { get; }
|
|
|
|
public User Author { get; }
|
|
|
|
public string Content { get; }
|
|
|
|
public IReadOnlyList<Attachment> Attachments { get; }
|
|
|
|
public Message(string id, DateTime timeStamp, User author, string content, IEnumerable<Attachment> attachments)
|
|
{
|
|
Id = id;
|
|
TimeStamp = timeStamp;
|
|
Author = author;
|
|
Content = content;
|
|
Attachments = attachments.ToArray();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Content;
|
|
}
|
|
}
|
|
} |