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-04 11:03:14 +02:00
|
|
|
public partial class MastodonJsonContext : JsonSerializerContext
|
|
|
|
|
{
|
|
|
|
|
}
|