DTOs for index mostly done, doing DB models
This commit is contained in:
22
SVSim.EmulatedEntrypoint/Models/Dtos/Internal/DataWrapper.cs
Normal file
22
SVSim.EmulatedEntrypoint/Models/Dtos/Internal/DataWrapper.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Internal;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class DataWrapper
|
||||
{
|
||||
/// <summary>
|
||||
/// Additional data about the request, response and user.
|
||||
/// </summary>
|
||||
[Key("data_headers")]
|
||||
public DataHeaders DataHeaders { get; set; } = new DataHeaders();
|
||||
|
||||
/// <summary>
|
||||
/// The response data from the endpoint.
|
||||
/// </summary>
|
||||
[Key("data")]
|
||||
public object Data { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user