Files
SVSimServer/SVSim.EmulatedEntrypoint/Models/Dtos/Replay/ReplayInfoResponseDto.cs
gamer147 2f7a2305da feat(replay): add /replay/info and /replay/detail DTOs
All numeric fields on ReplayInfoItemDto ship as string — matches prod
capture (frame 96 of traffic_prod_misc_clicking.ndjson). api-spec doc
will be updated separately.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-10 07:51:00 -04:00

19 lines
665 B
C#

using System.Text.Json.Serialization;
using MessagePack;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Replay;
[MessagePackObject]
public sealed class ReplayInfoResponseDto
{
/// <summary>
/// Required — client does not guard with Keys.Contains. Emit empty list, never null.
/// </summary>
[JsonPropertyName("replay_list"), Key("replay_list")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public List<ReplayInfoItemDto> ReplayList { get; set; } = new();
// feature_maintenance_list intentionally omitted — optional per spec, never set
// because we don't gate replay viewing. WhenWritingNull drops it from the wire.
}