Newsbot.Collector/Newsbot.Collector.Domain/Models/DiscordMessageEmbed.cs

37 lines
944 B
C#
Raw Normal View History

2023-03-05 20:12:59 -08:00
using Newtonsoft.Json;
namespace Newsbot.Collector.Domain.Models;
public class DiscordMessageEmbed
{
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("description")]
public string? Description { get; set; }
[JsonProperty("url")]
public string? Url { get; set; }
[JsonProperty("color")]
public int? Color { get; set; }
//2023-03-31T07:00:00.000Z
//[JsonProperty("timestamp")]
//public DateTime TimeStamp { get; set; }
[JsonProperty("author")]
public DiscordMessageEmbedAuthor? Author { get; set; }
[JsonProperty("fields")]
public DiscordMessageEmbedField[]? Fields { get; set; }
[JsonProperty("image")]
public DiscordMessageEmbedImage? Image { get; set; }
[JsonProperty("thumbnail")]
public DiscordMessageEmbedThumbnail? Thumbnail { get; set; }
[JsonProperty("footer")]
public DiscordMessageEmbedFooter? Footer { get; set; }
}