mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-07-21 04:56:19 +02:00
6d7a8ae063
* Create a dummy WPF project * Set up Ammy placeholders * Don't track autogenerated files * Basic layout * Add Program.cs * Implement basic workflow * Autofocus token textbox and add Enter key handler * Strip double quotes from token * AmmyUI converters are slightly dumb :( * Use CanExecute * Add file path select and theme select, also refactor * Persist token * Trying to improve UI/UX - 1 * Rename stuff * Finish improving UI/UX * Remove data placeholder * Remove border on middle grid * Ok now i'm done * Improve Discord API layer * Add lots of stuff * Show filesizes in export * Improve export * Animations * Update readme * Improving gui again * Improve UI again * Refactor
38 lines
912 B
C#
38 lines
912 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace DiscordChatExporter.Models
|
|
{
|
|
public class Message
|
|
{
|
|
public string Id { get; }
|
|
|
|
public User Author { get; }
|
|
|
|
public DateTime TimeStamp { get; }
|
|
|
|
public DateTime? EditedTimeStamp { get; }
|
|
|
|
public string Content { get; }
|
|
|
|
public IReadOnlyList<Attachment> Attachments { get; }
|
|
|
|
public Message(string id, User author,
|
|
DateTime timeStamp, DateTime? editedTimeStamp,
|
|
string content, IEnumerable<Attachment> attachments)
|
|
{
|
|
Id = id;
|
|
Author = author;
|
|
TimeStamp = timeStamp;
|
|
EditedTimeStamp = editedTimeStamp;
|
|
Content = content;
|
|
Attachments = attachments.ToArray();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Content;
|
|
}
|
|
}
|
|
} |