oliverbooth.dev/OliverBooth/Data/Mastodon/MastodonStatus.cs
Oliver Booth 6ec4103a3a
refactor: separate Markdig extensions from project
Also introduces .Common project to house common references and types
2024-05-05 02:18:20 +01:00

25 lines
703 B
C#

using System.Text.Json.Serialization;
using OliverBooth.Common.Data.Mastodon;
namespace OliverBooth.Data.Mastodon;
/// <inheritdoc />
internal sealed class MastodonStatus : IMastodonStatus
{
/// <inheritdoc />
[JsonPropertyName("content")]
public string Content { get; set; } = string.Empty;
/// <inheritdoc />
[JsonPropertyName("created_at")]
public DateTimeOffset CreatedAt { get; set; }
/// <inheritdoc />
[JsonPropertyName("media_attachments")]
public IReadOnlyList<MediaAttachment> MediaAttachments { get; set; } = ArraySegment<MediaAttachment>.Empty;
/// <inheritdoc />
[JsonPropertyName("url")]
public Uri OriginalUri { get; set; } = null!;
}