Deck list work

This commit is contained in:
gamer147
2026-05-23 19:57:34 -04:00
parent 66184b3685
commit d3b2970e11
41 changed files with 70683 additions and 81 deletions

View File

@@ -5,20 +5,25 @@ namespace SVSim.EmulatedEntrypoint.Models.Dtos;
/// <summary>
/// guild_notification on /mypage/index. Consumed by
/// MyPageNotifications.GuildNotification.SetGuildNotification. Prod sends nulls
/// for guild_id / guild_room_message_id when the viewer isn't in a guild; with
/// WhenWritingNull those keys are omitted on our wire, which is equivalent
/// since the parser is null-tolerant.
/// MyPageNotifications.GuildNotification.SetGuildNotification (GuildNotification.cs:30-38),
/// which reads guild_id / guild_room_message_id via `var x = json["guild_id"]; if (x != null) ...`
/// — the LitJson indexer throws KeyNotFoundException on a missing key, so these
/// must reach the client as explicit nulls when there's no guild. Override the
/// global WhenWritingNull so they survive serialization. Prod's wire matches:
/// `"guild_notification":{"guild_id":null,"guild_room_message_id":null,...}`.
/// See [[project-wire-null-policy]] for the broader pattern.
/// </summary>
[MessagePackObject]
public class GuildNotification
{
[JsonPropertyName("guild_id")]
[Key("guild_id")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public long? GuildId { get; set; }
[JsonPropertyName("guild_room_message_id")]
[Key("guild_room_message_id")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public long? GuildRoomMessageId { get; set; }
[JsonPropertyName("is_join_request")]