using System.Buffers.Text; using System.Text; using MessagePack; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using SVSim.EmulatedEntrypoint.Models.Dtos; using SVSim.EmulatedEntrypoint.Models.Dtos.Requests; using SVSim.EmulatedEntrypoint.Models.Dtos.Responses; namespace SVSim.EmulatedEntrypoint.Controllers { [Route("api/[controller]")] [ApiController] public class CheckController : SVSimController { private ILogger _logger; public CheckController(ILogger logger) { _logger = logger; } [AllowAnonymous] [HttpPost("special_title")] public async Task> SpecialTitleCheck(SpecialTitleCheckRequest request) { int titleId = Random.Shared.Next(8, 33); var res = new DataWrapper { Data = new SpecialTitleCheckResponse { TitleImageId = titleId, TitleSoundId = titleId }, DataHeaders = new DataHeaders { ShortUdid = 411054851, ViewerId = 906243102, Sid = string.Empty, Servertime = DateTime.UtcNow.Ticks, ResultCode = 1 } }; return res; } [HttpPost("game_start")] public async Task> GameStart(GameStartRequest request) { return new DataWrapper() { DataHeaders = new DataHeaders { ShortUdid = 411054851, ViewerId = 906243102, Sid = string.Empty, Servertime = DateTime.UtcNow.Ticks, ResultCode = 1 }, Data = new GameStartResponse() { IsSetTransitionPassword = true, KorAuthorityId = default, KorAuthorityState = default, NowRank = new Dictionary() { {"1", "RankName_010"}, {"2", "RankName_010"}, {"4", "RankName_017"} }, NowName = "combusty7", PolicyState = default, PolicyId = default, NowTutorialStep = "100", NowViewerId = 906243102, TosId = default, TosState = default, TransitionAccountData = new List() { new TransitionAccountData() { ConnectedViewerId = "906243102", SocialAccountType = "5", SocialAccountId = "76561197970830305" } } } }; } } }