using MessagePack;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace SVSim.EmulatedEntrypoint.Models.Dtos.GuildChat;

/// <summary>
/// Response for POST /guild_chat/delete_deck.
/// Returns refreshed deck_log after deletion.
/// TODO(task-17): replace deck_log with typed DeckLogData DTOs when deck-log shape is fully documented.
/// </summary>
[MessagePackObject]
public class GuildChatDeleteDeckResponse
{
    [JsonPropertyName("maintenance_card_list"), Key("maintenance_card_list"),
     JsonIgnore(Condition = JsonIgnoreCondition.Never)]
    public List<int> MaintenanceCardList { get; set; } = new();

    /// <summary>
    /// Refreshed deck log keyed by API-side Format int (stringified, e.g. "1", "2").
    /// Using JsonElement for now; Task 17 will type this properly.
    /// </summary>
    [JsonPropertyName("deck_log"), Key("deck_log")]
    public JsonElement? DeckLog { get; set; }
}
