diff --git a/TaikoLocalServer.sln b/TaikoLocalServer.sln index 10aa03a..84a1f1d 100644 --- a/TaikoLocalServer.sln +++ b/TaikoLocalServer.sln @@ -2,6 +2,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TaikoLocalServer", "TaikoLocalServer\TaikoLocalServer.csproj", "{98FDA12C-CD3C-42D0-BEBE-4E809E6E41AC}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AntDashboard", "AntDashboard\AntDashboard.csproj", "{BBB35D52-6635-4DD7-BB6D-A4EA534E0CEB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -12,5 +14,9 @@ Global {98FDA12C-CD3C-42D0-BEBE-4E809E6E41AC}.Debug|Any CPU.Build.0 = Debug|Any CPU {98FDA12C-CD3C-42D0-BEBE-4E809E6E41AC}.Release|Any CPU.ActiveCfg = Release|Any CPU {98FDA12C-CD3C-42D0-BEBE-4E809E6E41AC}.Release|Any CPU.Build.0 = Release|Any CPU + {BBB35D52-6635-4DD7-BB6D-A4EA534E0CEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BBB35D52-6635-4DD7-BB6D-A4EA534E0CEB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BBB35D52-6635-4DD7-BB6D-A4EA534E0CEB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BBB35D52-6635-4DD7-BB6D-A4EA534E0CEB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/TaikoLocalServer/Common/Enums/Difficulty.cs b/TaikoLocalServer/Common/Enums/Difficulty.cs index 4c93d70..fdfdb20 100644 --- a/TaikoLocalServer/Common/Enums/Difficulty.cs +++ b/TaikoLocalServer/Common/Enums/Difficulty.cs @@ -2,6 +2,7 @@ public enum Difficulty : uint { + None = 0, Easy = 1, Normal = 2, Hard = 3, diff --git a/TaikoLocalServer/Context/TaikoDbContext.cs b/TaikoLocalServer/Context/TaikoDbContext.cs index 61d367d..3e4be1e 100644 --- a/TaikoLocalServer/Context/TaikoDbContext.cs +++ b/TaikoLocalServer/Context/TaikoDbContext.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore; using TaikoLocalServer.Common; using TaikoLocalServer.Entities; diff --git a/TaikoLocalServer/Controllers/BaidController.cs b/TaikoLocalServer/Controllers/BaidController.cs index 6d5db77..fb9e291 100644 --- a/TaikoLocalServer/Controllers/BaidController.cs +++ b/TaikoLocalServer/Controllers/BaidController.cs @@ -115,9 +115,9 @@ public class BaidController:ControllerBase MydonName = userData.MyDonName, Title = userData.Title, TitleplateId = userData.TitlePlateId, - ColorFace = 1, + ColorFace = 0, ColorBody = 1, - ColorLimb = 1, + ColorLimb = 3, AryCostumedata = new BAIDResponse.CostumeData { Costume1 = ValueHelpers.GetNonZeroValue(costumeData[0]), @@ -142,7 +142,7 @@ public class BaidController:ControllerBase AryScoreRankCounts = scoreRankCount, IsDispAchievementOn = userData.DisplayAchievement, DispAchievementType = (uint)userData.AchievementDisplayDifficulty, - IsDispAchievementTypeSet = false, + IsDispAchievementTypeSet = true, LastPlayMode = 0, IsDispSouuchiOn = true, AiRank = 0, diff --git a/TaikoLocalServer/Controllers/ChallengeCompetitionController.cs b/TaikoLocalServer/Controllers/ChallengeCompetitionController.cs index 770b7d7..090c336 100644 --- a/TaikoLocalServer/Controllers/ChallengeCompetitionController.cs +++ b/TaikoLocalServer/Controllers/ChallengeCompetitionController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/challengecompe.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/CrownsDataController.cs b/TaikoLocalServer/Controllers/CrownsDataController.cs index 8a96d30..aa257f5 100644 --- a/TaikoLocalServer/Controllers/CrownsDataController.cs +++ b/TaikoLocalServer/Controllers/CrownsDataController.cs @@ -1,7 +1,4 @@ -using System.Collections; -using System.Collections.Specialized; -using Microsoft.AspNetCore.Http; -using TaikoLocalServer.Common; +using TaikoLocalServer.Common; using TaikoLocalServer.Common.Enums; using TaikoLocalServer.Context; using TaikoLocalServer.Utils; diff --git a/TaikoLocalServer/Controllers/ExecuteQrCodeController.cs b/TaikoLocalServer/Controllers/ExecuteQrCodeController.cs index 35a1cae..2ead165 100644 --- a/TaikoLocalServer/Controllers/ExecuteQrCodeController.cs +++ b/TaikoLocalServer/Controllers/ExecuteQrCodeController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/executeqrcode.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetAiDataController.cs b/TaikoLocalServer/Controllers/GetAiDataController.cs index becb35a..aa588e9 100644 --- a/TaikoLocalServer/Controllers/GetAiDataController.cs +++ b/TaikoLocalServer/Controllers/GetAiDataController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/getaidata.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetAiScoreController.cs b/TaikoLocalServer/Controllers/GetAiScoreController.cs index 39b595c..7f9ac57 100644 --- a/TaikoLocalServer/Controllers/GetAiScoreController.cs +++ b/TaikoLocalServer/Controllers/GetAiScoreController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/getaiscore.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetApplicationUrlController.cs b/TaikoLocalServer/Controllers/GetApplicationUrlController.cs index d3d563a..680f855 100644 --- a/TaikoLocalServer/Controllers/GetApplicationUrlController.cs +++ b/TaikoLocalServer/Controllers/GetApplicationUrlController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/getapplicationurl.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetDanOdaiController.cs b/TaikoLocalServer/Controllers/GetDanOdaiController.cs index 4796c8c..44802c1 100644 --- a/TaikoLocalServer/Controllers/GetDanOdaiController.cs +++ b/TaikoLocalServer/Controllers/GetDanOdaiController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/getdanodai.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetDanScoreController.cs b/TaikoLocalServer/Controllers/GetDanScoreController.cs index c7fdeec..10e11fd 100644 --- a/TaikoLocalServer/Controllers/GetDanScoreController.cs +++ b/TaikoLocalServer/Controllers/GetDanScoreController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("api/[controller]")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetFolderController.cs b/TaikoLocalServer/Controllers/GetFolderController.cs index 88b358b..ea41111 100644 --- a/TaikoLocalServer/Controllers/GetFolderController.cs +++ b/TaikoLocalServer/Controllers/GetFolderController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/getfolder.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetScoreRankController.cs b/TaikoLocalServer/Controllers/GetScoreRankController.cs index 654cebe..736a335 100644 --- a/TaikoLocalServer/Controllers/GetScoreRankController.cs +++ b/TaikoLocalServer/Controllers/GetScoreRankController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Http; -using TaikoLocalServer.Common; +using TaikoLocalServer.Common; using TaikoLocalServer.Common.Enums; using TaikoLocalServer.Context; using TaikoLocalServer.Utils; diff --git a/TaikoLocalServer/Controllers/GetShopFolderController.cs b/TaikoLocalServer/Controllers/GetShopFolderController.cs index e98bc66..3764fe9 100644 --- a/TaikoLocalServer/Controllers/GetShopFolderController.cs +++ b/TaikoLocalServer/Controllers/GetShopFolderController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/getshopfolder.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetSongIntroductionController.cs b/TaikoLocalServer/Controllers/GetSongIntroductionController.cs index 5d84098..2556eeb 100644 --- a/TaikoLocalServer/Controllers/GetSongIntroductionController.cs +++ b/TaikoLocalServer/Controllers/GetSongIntroductionController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/getsongintroduction.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/GetTelopController.cs b/TaikoLocalServer/Controllers/GetTelopController.cs index 443aa1b..06f0796 100644 --- a/TaikoLocalServer/Controllers/GetTelopController.cs +++ b/TaikoLocalServer/Controllers/GetTelopController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; -using Swan.Extensions; -using TaikoLocalServer.Common; +using TaikoLocalServer.Common; namespace TaikoLocalServer.Controllers; diff --git a/TaikoLocalServer/Controllers/GetTokenCountController.cs b/TaikoLocalServer/Controllers/GetTokenCountController.cs index ec2b6d5..557b3b6 100644 --- a/TaikoLocalServer/Controllers/GetTokenCountController.cs +++ b/TaikoLocalServer/Controllers/GetTokenCountController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/gettokencount.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/InitialDataCheckController.cs b/TaikoLocalServer/Controllers/InitialDataCheckController.cs index b4edb0a..8caad99 100644 --- a/TaikoLocalServer/Controllers/InitialDataCheckController.cs +++ b/TaikoLocalServer/Controllers/InitialDataCheckController.cs @@ -1,7 +1,4 @@ -using System.Collections; -using Swan.Extensions; -using TaikoLocalServer.Common; -using TaikoLocalServer.Utils; +using TaikoLocalServer.Common; namespace TaikoLocalServer.Controllers; diff --git a/TaikoLocalServer/Controllers/MuchaController.cs b/TaikoLocalServer/Controllers/MuchaController.cs index 35e76d1..422004f 100644 --- a/TaikoLocalServer/Controllers/MuchaController.cs +++ b/TaikoLocalServer/Controllers/MuchaController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Swan.Formatters; -using TaikoLocalServer.Models; +using TaikoLocalServer.Models; using TaikoLocalServer.Utils; namespace TaikoLocalServer.Controllers; diff --git a/TaikoLocalServer/Controllers/MyDonEntryController.cs b/TaikoLocalServer/Controllers/MyDonEntryController.cs index 3bdec8a..f7fd1e8 100644 --- a/TaikoLocalServer/Controllers/MyDonEntryController.cs +++ b/TaikoLocalServer/Controllers/MyDonEntryController.cs @@ -1,8 +1,6 @@ -using Microsoft.AspNetCore.Http; -using TaikoLocalServer.Common.Enums; +using TaikoLocalServer.Common.Enums; using TaikoLocalServer.Context; using TaikoLocalServer.Entities; -using TaikoLocalServer.Utils; namespace TaikoLocalServer.Controllers; @@ -38,7 +36,7 @@ public class MyDonEntryController : ControllerBase MyDonName = request.MydonName, DisplayDan = false, DisplayAchievement = true, - AchievementDisplayDifficulty = Difficulty.Easy + AchievementDisplayDifficulty = Difficulty.None }); context.SaveChanges(); diff --git a/TaikoLocalServer/Controllers/PlayResultController.cs b/TaikoLocalServer/Controllers/PlayResultController.cs index 838339a..65c6b69 100644 --- a/TaikoLocalServer/Controllers/PlayResultController.cs +++ b/TaikoLocalServer/Controllers/PlayResultController.cs @@ -1,6 +1,5 @@ using System.Globalization; using System.Text.Json; -using Microsoft.AspNetCore.Http; using ProtoBuf; using TaikoLocalServer.Common; using TaikoLocalServer.Common.Enums; diff --git a/TaikoLocalServer/Controllers/PowerOnController.cs b/TaikoLocalServer/Controllers/PowerOnController.cs index 77bc21f..3d93a53 100644 --- a/TaikoLocalServer/Controllers/PowerOnController.cs +++ b/TaikoLocalServer/Controllers/PowerOnController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Swan.Formatters; -using TaikoLocalServer.Models; +using TaikoLocalServer.Models; using TaikoLocalServer.Utils; namespace TaikoLocalServer.Controllers; diff --git a/TaikoLocalServer/Controllers/RewardItemController.cs b/TaikoLocalServer/Controllers/RewardItemController.cs index abc03ac..4ba7e05 100644 --- a/TaikoLocalServer/Controllers/RewardItemController.cs +++ b/TaikoLocalServer/Controllers/RewardItemController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/rewarditem.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/SelfBestController.cs b/TaikoLocalServer/Controllers/SelfBestController.cs index 2bafae9..0fe3c0d 100644 --- a/TaikoLocalServer/Controllers/SelfBestController.cs +++ b/TaikoLocalServer/Controllers/SelfBestController.cs @@ -1,9 +1,6 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Caching.Memory; -using TaikoLocalServer.Common.Enums; +using TaikoLocalServer.Common.Enums; using TaikoLocalServer.Context; using TaikoLocalServer.Entities; -using TaikoLocalServer.Models; using TaikoLocalServer.Utils; namespace TaikoLocalServer.Controllers; diff --git a/TaikoLocalServer/Controllers/SongPurchaseController.cs b/TaikoLocalServer/Controllers/SongPurchaseController.cs index 32e290a..b5a2246 100644 --- a/TaikoLocalServer/Controllers/SongPurchaseController.cs +++ b/TaikoLocalServer/Controllers/SongPurchaseController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/songpurchase.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/TournamentCheckController.cs b/TaikoLocalServer/Controllers/TournamentCheckController.cs index 4b12df8..3f64e91 100644 --- a/TaikoLocalServer/Controllers/TournamentCheckController.cs +++ b/TaikoLocalServer/Controllers/TournamentCheckController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/tournamentcheck.php")] [ApiController] diff --git a/TaikoLocalServer/Controllers/UserDataController.cs b/TaikoLocalServer/Controllers/UserDataController.cs index 2659a06..152a2ae 100644 --- a/TaikoLocalServer/Controllers/UserDataController.cs +++ b/TaikoLocalServer/Controllers/UserDataController.cs @@ -1,6 +1,6 @@ using System.Collections; -using System.Runtime.InteropServices; using TaikoLocalServer.Common; +using TaikoLocalServer.Context; using TaikoLocalServer.Utils; namespace TaikoLocalServer.Controllers; @@ -10,8 +10,13 @@ namespace TaikoLocalServer.Controllers; public class UserDataController : ControllerBase { private readonly ILogger logger; - public UserDataController(ILogger logger) { + + private readonly TaikoDbContext context; + + public UserDataController(ILogger logger, TaikoDbContext context) + { this.logger = logger; + this.context = context; } [HttpPost] @@ -37,17 +42,32 @@ public class UserDataController : ControllerBase bitSet.Set((int)music, true); } bitSet.CopyTo(uraSongArray, 0); - + + var toneArray = new byte[5]; + Array.Fill(toneArray, byte.MaxValue); + + var recentSongs = context.SongPlayData + .Where(datum => datum.Baid == request.Baid) + .OrderByDescending(datum => datum.PlayTime) + .AsEnumerable() + .DistinctBy(datum => datum.SongId) + .Take(10) + .Select(datum => datum.SongId) + .ToArray(); + var response = new UserDataResponse { Result = 1, - ToneFlg = new byte[] {0}, + ToneFlg = toneArray, // TitleFlg = GZipBytesUtil.GetGZipBytes(new byte[100]), ReleaseSongFlg = releaseSongArray, UraReleaseSongFlg = uraSongArray, DefaultOptionSetting = new byte[] {0}, IsVoiceOn = true, - IsSkipOn = false + IsSkipOn = false, + IsChallengecompe = false, + SongRecentCnt = (uint)recentSongs.Length, + AryRecentSongNoes = recentSongs }; diff --git a/TaikoLocalServer/Controllers/VerifyQrCodeController.cs b/TaikoLocalServer/Controllers/VerifyQrCodeController.cs index 28cea81..b3ba477 100644 --- a/TaikoLocalServer/Controllers/VerifyQrCodeController.cs +++ b/TaikoLocalServer/Controllers/VerifyQrCodeController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Http; - -namespace TaikoLocalServer.Controllers; +namespace TaikoLocalServer.Controllers; [Route("/v12r03/chassis/verifyqrcode.php")] [ApiController] diff --git a/TaikoLocalServer/Entities/Card.cs b/TaikoLocalServer/Entities/Card.cs index 2ff15c1..889d5c1 100644 --- a/TaikoLocalServer/Entities/Card.cs +++ b/TaikoLocalServer/Entities/Card.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace TaikoLocalServer.Entities +namespace TaikoLocalServer.Entities { public partial class Card { diff --git a/TaikoLocalServer/Entities/SongBestDatum.cs b/TaikoLocalServer/Entities/SongBestDatum.cs index 9fd7803..0e4db5f 100644 --- a/TaikoLocalServer/Entities/SongBestDatum.cs +++ b/TaikoLocalServer/Entities/SongBestDatum.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using TaikoLocalServer.Common.Enums; +using TaikoLocalServer.Common.Enums; namespace TaikoLocalServer.Entities { diff --git a/TaikoLocalServer/Entities/SongPlayDatum.cs b/TaikoLocalServer/Entities/SongPlayDatum.cs index 9d45368..9844b94 100644 --- a/TaikoLocalServer/Entities/SongPlayDatum.cs +++ b/TaikoLocalServer/Entities/SongPlayDatum.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using TaikoLocalServer.Common.Enums; +using TaikoLocalServer.Common.Enums; namespace TaikoLocalServer.Entities { diff --git a/TaikoLocalServer/Entities/UserDatum.cs b/TaikoLocalServer/Entities/UserDatum.cs index f886037..d40ac36 100644 --- a/TaikoLocalServer/Entities/UserDatum.cs +++ b/TaikoLocalServer/Entities/UserDatum.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using TaikoLocalServer.Common.Enums; +using TaikoLocalServer.Common.Enums; namespace TaikoLocalServer.Entities { diff --git a/TaikoLocalServer/Middlewares/AllNetRequestMiddleware.cs b/TaikoLocalServer/Middlewares/AllNetRequestMiddleware.cs index 5616408..8d827b5 100644 --- a/TaikoLocalServer/Middlewares/AllNetRequestMiddleware.cs +++ b/TaikoLocalServer/Middlewares/AllNetRequestMiddleware.cs @@ -1,6 +1,4 @@ -using System.Buffers.Text; -using System.IO.Compression; -using System.Net; +using System.Net; using ICSharpCode.SharpZipLib.Zip.Compression.Streams; namespace TaikoLocalServer.Middlewares; diff --git a/TaikoLocalServer/Models/MuchaBoardAuthRequest.cs b/TaikoLocalServer/Models/MuchaBoardAuthRequest.cs index f98250f..f56f928 100644 --- a/TaikoLocalServer/Models/MuchaBoardAuthRequest.cs +++ b/TaikoLocalServer/Models/MuchaBoardAuthRequest.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; - -namespace TaikoLocalServer.Models; +namespace TaikoLocalServer.Models; public class MuchaBoardAuthRequest { diff --git a/TaikoLocalServer/Models/MuchaUpdateCheckRequest.cs b/TaikoLocalServer/Models/MuchaUpdateCheckRequest.cs index 17a0c60..e7293fb 100644 --- a/TaikoLocalServer/Models/MuchaUpdateCheckRequest.cs +++ b/TaikoLocalServer/Models/MuchaUpdateCheckRequest.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; - -namespace TaikoLocalServer.Models; +namespace TaikoLocalServer.Models; public class MuchaUpdateCheckRequest { diff --git a/TaikoLocalServer/Models/PowerOnRequest.cs b/TaikoLocalServer/Models/PowerOnRequest.cs index b5fdd1a..f045c1f 100644 --- a/TaikoLocalServer/Models/PowerOnRequest.cs +++ b/TaikoLocalServer/Models/PowerOnRequest.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; - -namespace TaikoLocalServer.Models; +namespace TaikoLocalServer.Models; public class PowerOnRequest {