Files
SVSimServer/SVSim.EmulatedEntrypoint/Models/Dtos/GuildChat/GuildChatMessagesResponse.cs
gamer147 754b2ca466 fix(guild_chat): wait_interval as raw int + capture-replay request field name
Remove StringifiedIntConverter from GuildChatMessagesResponse.WaitInterval so the
wire emits a raw JSON number (3) matching prod, not a quoted string ("3").
Update GuildChatPollTests (2 assertions) and GuildCaptureReplayTests (1 assertion +
comment) to expect JsonValueKind.Number. Fix last_message_id → start_message_id typo
in GuildChatMessages_Member_ReturnsProdShape request body.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-27 15:40:30 -04:00

31 lines
1.3 KiB
C#

using MessagePack;
using System.Text.Json.Serialization;
using SVSim.EmulatedEntrypoint.Models.Dtos.Common.Guild;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.GuildChat;
/// <summary>Response for POST /guild_chat/messages.</summary>
[MessagePackObject]
public class GuildChatMessagesResponse
{
/// <summary>Card ids currently disabled for maintenance — client refreshes its global list.</summary>
[JsonPropertyName("maintenance_card_list"), Key("maintenance_card_list"),
JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public List<int> MaintenanceCardList { get; set; } = new();
/// <summary>Users referenced by messages in this batch — deduplicated catalog.</summary>
[JsonPropertyName("users"), Key("users"),
JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public List<ChatUserDto> Users { get; set; } = new();
/// <summary>Messages ordered oldest-to-newest.</summary>
[JsonPropertyName("chat_message"), Key("chat_message"),
JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public List<ChatMessageDto> ChatMessage { get; set; } = new();
/// <summary>Server-driven polling interval in seconds. Client uses this for the next poll.</summary>
[JsonPropertyName("wait_interval"), Key("wait_interval"),
JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public int WaitInterval { get; set; }
}