Stuff works
This commit is contained in:
@@ -6,9 +6,9 @@ namespace SVSim.EmulatedEntrypoint.Models.Dtos;
|
||||
public class DataHeaders
|
||||
{
|
||||
[Key("short_udid")]
|
||||
public int ShortUdid { get; set; }
|
||||
public ulong ShortUdid { get; set; }
|
||||
[Key("viewer_id")]
|
||||
public int ViewerId { get; set; }
|
||||
public ulong ViewerId { get; set; }
|
||||
[Key("sid")]
|
||||
public string Sid { get; set; }
|
||||
[Key("servertime")]
|
||||
|
||||
@@ -2,11 +2,21 @@ using MessagePack;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
|
||||
|
||||
/// <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<T>
|
||||
public class DataWrapper
|
||||
{
|
||||
[Key("data_headers")]
|
||||
public DataHeaders DataHeaders { get; set; }
|
||||
[Key("data")]
|
||||
public T Data { get; set; }
|
||||
/// <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();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
public class IndexRequest : BaseRequest
|
||||
{
|
||||
public string Carrier { get; set; }
|
||||
public string CardMasterHash { get; set; }
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace SVSim.EmulatedEntrypoint.Models.Dtos.Responses;
|
||||
public class GameStartResponse
|
||||
{
|
||||
[Key("now_viewer_id")]
|
||||
public long NowViewerId { get; set; }
|
||||
public ulong NowViewerId { get; set; }
|
||||
[Key("is_set_transition_password")]
|
||||
public bool IsSetTransitionPassword { get; set; }
|
||||
[Key("now_name")]
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Responses;
|
||||
|
||||
public class IndexResponse
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user