- 5 common DTOs under Models/Dtos/Common/Guild/ (GuildDetailDto, GuildUserBaseDto, GuildMemberInfoDto, ChatUserDto, ChatMessageDto) - 28 per-endpoint request/response DTOs under Models/Dtos/Guild/ and Models/Dtos/GuildChat/ with full [MessagePackObject]/[Key]/ [JsonPropertyName] attribute mirrors on every property - GuildController (22 actions): /guild/info returns prod-shape with config-backed max_member_num/max_sub_leader_num/usable_stamp_list; 21 stubs return empty/default DTOs - GuildChatController (7 stubs), /guild_chat/messages stub returns wait_interval=10 per config - 29 new routing smoke test cases (100 total, all pass) - GuildWireShape literal-JSON test for GuildInfoResponse (1/1 pass) - GameConfigurationJsonbTests updated for 17th GuildConfig section - Total: 1422 tests pass, 0 errors Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
1.4 KiB
C#
32 lines
1.4 KiB
C#
using MessagePack;
|
|
using System.Text.Json.Serialization;
|
|
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
|
|
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"), JsonConverter(typeof(StringifiedIntConverter)),
|
|
JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
|
public int WaitInterval { get; set; }
|
|
}
|