2026-10-04 11:44:51 +02:00
|
|
|
using System.Text.Json.Serialization;
|
2026-10-04 11:03:14 +02:00
|
|
|
|
|
|
|
|
using decePubClient.Models.Mastodon;
|
|
|
|
|
|
|
|
|
|
namespace decePubClient;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Source-generated JSON metadata for PrivaPub's Mastodon API and /oauth (snake_case), used by
|
|
|
|
|
/// SUtility.MastodonSerializer. ClientJsonContext stays camelCase for /clientapi and localStorage. Read-only properties
|
|
|
|
|
/// (Account.Host, Account.Name) are computed, never sent.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
|
|
|
|
IgnoreReadOnlyProperties = true, PropertyNameCaseInsensitive = true)]
|
|
|
|
|
[JsonSerializable(typeof(Status))]
|
|
|
|
|
[JsonSerializable(typeof(List<Status>))]
|
|
|
|
|
[JsonSerializable(typeof(StatusContext))]
|
|
|
|
|
[JsonSerializable(typeof(Account))]
|
|
|
|
|
[JsonSerializable(typeof(List<Account>))]
|
|
|
|
|
[JsonSerializable(typeof(Relationship))]
|
2026-10-05 01:23:18 +02:00
|
|
|
[JsonSerializable(typeof(List<Relationship>))]
|
|
|
|
|
[JsonSerializable(typeof(SearchResults))]
|
2026-10-04 11:03:14 +02:00
|
|
|
[JsonSerializable(typeof(MediaAttachment))]
|
|
|
|
|
[JsonSerializable(typeof(Notification))]
|
|
|
|
|
[JsonSerializable(typeof(List<Notification>))]
|
|
|
|
|
[JsonSerializable(typeof(Conversation))]
|
|
|
|
|
[JsonSerializable(typeof(List<Conversation>))]
|
|
|
|
|
[JsonSerializable(typeof(InstanceDescription))]
|
|
|
|
|
[JsonSerializable(typeof(List<InstanceDescription>))]
|
2026-10-04 11:44:51 +02:00
|
|
|
[JsonSerializable(typeof(List<InstanceWeek>))]
|
|
|
|
|
[JsonSerializable(typeof(List<CdnSummary>))]
|
|
|
|
|
[JsonSerializable(typeof(CdnDetail))]
|
2026-10-04 11:03:14 +02:00
|
|
|
[JsonSerializable(typeof(Provenance))]
|
|
|
|
|
[JsonSerializable(typeof(TokenResponse))]
|
|
|
|
|
[JsonSerializable(typeof(MastodonError))]
|
|
|
|
|
[JsonSerializable(typeof(PostStatusForm))]
|
2026-10-05 01:23:18 +02:00
|
|
|
[JsonSerializable(typeof(Poll))]
|
|
|
|
|
[JsonSerializable(typeof(PollVoteForm))]
|
2026-10-05 02:49:51 +02:00
|
|
|
[JsonSerializable(typeof(MastodonList))]
|
|
|
|
|
[JsonSerializable(typeof(List<MastodonList>))]
|
|
|
|
|
[JsonSerializable(typeof(ListAccountsForm))]
|
2026-10-05 03:10:27 +02:00
|
|
|
[JsonSerializable(typeof(Filter))]
|
|
|
|
|
[JsonSerializable(typeof(List<Filter>))]
|
|
|
|
|
[JsonSerializable(typeof(FilterForm))]
|
|
|
|
|
[JsonSerializable(typeof(FilterStatus))]
|
2026-10-05 03:53:51 +02:00
|
|
|
[JsonSerializable(typeof(ScheduledStatus))]
|
|
|
|
|
[JsonSerializable(typeof(List<ScheduledStatus>))]
|
|
|
|
|
[JsonSerializable(typeof(ScheduleForm))]
|
|
|
|
|
[JsonSerializable(typeof(Tag))]
|
|
|
|
|
[JsonSerializable(typeof(List<Tag>))]
|
|
|
|
|
[JsonSerializable(typeof(List<TrendLink>))]
|
2026-10-05 04:35:23 +02:00
|
|
|
[JsonSerializable(typeof(GroupedNotifications))]
|
|
|
|
|
[JsonSerializable(typeof(MarkersForm))]
|
|
|
|
|
[JsonSerializable(typeof(UnreadCount))]
|
2026-10-04 11:03:14 +02:00
|
|
|
public partial class MastodonJsonContext : JsonSerializerContext
|
|
|
|
|
{
|
|
|
|
|
}
|