mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-08 11:00:38 +00:00
Cleanup
This commit is contained in:
@@ -6,19 +6,24 @@
|
||||
{
|
||||
public string Id { get; }
|
||||
|
||||
public bool IsImage { get; }
|
||||
|
||||
public string Url { get; }
|
||||
|
||||
public int? Width { get; }
|
||||
|
||||
public int? Height { get; }
|
||||
|
||||
public bool IsImage => Width != null;
|
||||
|
||||
public string FileName { get; }
|
||||
|
||||
public long FileSize { get; }
|
||||
|
||||
public Attachment(string id, bool isImage, string url, string fileName, long fileSize)
|
||||
public Attachment(string id, int? width, int? height, string url, string fileName, long fileSize)
|
||||
{
|
||||
Id = id;
|
||||
IsImage = isImage;
|
||||
Url = url;
|
||||
Width = width;
|
||||
Height = height;
|
||||
FileName = fileName;
|
||||
FileSize = fileSize;
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ namespace DiscordChatExporter.Core.Models
|
||||
{
|
||||
public string Url { get; }
|
||||
|
||||
public int? Height { get; }
|
||||
|
||||
public int? Width { get; }
|
||||
|
||||
public EmbedImage(string url, int? height, int? width)
|
||||
public int? Height { get; }
|
||||
|
||||
public EmbedImage(string url, int? width, int? height)
|
||||
{
|
||||
Url = url;
|
||||
Height = height;
|
||||
|
||||
Reference in New Issue
Block a user