feat(dto): TK2 common DTOs (entry/class/deck/candidate/results/reward)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-05-31 10:40:06 -04:00
parent 2df18425c4
commit 30a723322c
6 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System.Text.Json.Serialization;
using MessagePack;
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Common.ArenaTwoPick;
/// <summary>
/// One entry on the TK2 reward_list / rewards wire arrays. Matches the entry-response capture
/// (reward_type int, reward_id int, reward_num string).
/// </summary>
[MessagePackObject]
public class RewardEntryDto
{
[JsonPropertyName("reward_type")] [Key("reward_type")]
public int RewardType { get; set; }
[JsonPropertyName("reward_id")] [Key("reward_id")]
public long RewardId { get; set; }
[JsonPropertyName("reward_num")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("reward_num")]
public int RewardNum { get; set; }
}