using MessagePack; using System.Text.Json.Serialization; namespace SVSim.EmulatedEntrypoint.Models.Dtos.Internal; /// /// Wraps responses in the format the official game client expects, with a header section for additional data. Not for manual endpoint use, this wrapping is done automatically in a middleware. /// [MessagePackObject] public class DataWrapper { /// /// Additional data about the request, response and user. /// [JsonPropertyName("data_headers")] [Key("data_headers")] public DataHeaders DataHeaders { get; set; } = new DataHeaders(); /// /// The response data from the endpoint. /// [JsonPropertyName("data")] [Key("data")] public object Data { get; set; } = new(); }