Files
decePubClient/MastodonJsonContext.cs
T
thepraandClaude Opus 5.5 a4d9831691 Notifications in groups, and what is unread
The Notifications tab reads grouped notifications (/api/v2/notifications):
likes and boosts of one post, or follows of one hour, are one card naming
both accounts of a pair, or the newest and how many others, with their
avatars. A notification the stream tells joins its group and waits on top.
The tab's badge counts what is unread; opening the tab moves the
notifications marker to the newest shown, which reads it on PrivaPub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
2026-10-05 04:35:23 +02:00

57 lines
2.3 KiB
C#

using System.Text.Json.Serialization;
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))]
[JsonSerializable(typeof(List<Relationship>))]
[JsonSerializable(typeof(SearchResults))]
[JsonSerializable(typeof(MediaAttachment))]
[JsonSerializable(typeof(Notification))]
[JsonSerializable(typeof(List<Notification>))]
[JsonSerializable(typeof(Conversation))]
[JsonSerializable(typeof(List<Conversation>))]
[JsonSerializable(typeof(InstanceDescription))]
[JsonSerializable(typeof(List<InstanceDescription>))]
[JsonSerializable(typeof(List<InstanceWeek>))]
[JsonSerializable(typeof(List<CdnSummary>))]
[JsonSerializable(typeof(CdnDetail))]
[JsonSerializable(typeof(Provenance))]
[JsonSerializable(typeof(TokenResponse))]
[JsonSerializable(typeof(MastodonError))]
[JsonSerializable(typeof(PostStatusForm))]
[JsonSerializable(typeof(Poll))]
[JsonSerializable(typeof(PollVoteForm))]
[JsonSerializable(typeof(MastodonList))]
[JsonSerializable(typeof(List<MastodonList>))]
[JsonSerializable(typeof(ListAccountsForm))]
[JsonSerializable(typeof(Filter))]
[JsonSerializable(typeof(List<Filter>))]
[JsonSerializable(typeof(FilterForm))]
[JsonSerializable(typeof(FilterStatus))]
[JsonSerializable(typeof(ScheduledStatus))]
[JsonSerializable(typeof(List<ScheduledStatus>))]
[JsonSerializable(typeof(ScheduleForm))]
[JsonSerializable(typeof(Tag))]
[JsonSerializable(typeof(List<Tag>))]
[JsonSerializable(typeof(List<TrendLink>))]
[JsonSerializable(typeof(GroupedNotifications))]
[JsonSerializable(typeof(MarkersForm))]
[JsonSerializable(typeof(UnreadCount))]
public partial class MastodonJsonContext : JsonSerializerContext
{
}