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