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>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using MessagePack;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Replay;
|
||||
|
||||
/// <summary>
|
||||
/// /replay/detail request. ReplayDetailTaskParam declares <c>new int viewer_id</c>
|
||||
/// shadowing the inherited field — wire ships both. We accept both; the body's
|
||||
/// <c>viewer_id</c> identifies the replay owner (typically same as caller).
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public sealed class ReplayDetailRequestDto : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("battle_id"), Key("battle_id")]
|
||||
public long BattleId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user