oliverbooth.dev/OliverBooth/Data/Mastodon/MastodonStatus.cs

25 lines
703 B
C#
Raw Normal View History

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