@inject IGameDataService GameDataService @inject HttpClient Client @page "/Cards/{baid:int}/TaikoMode"

Taiko Mode

Card: @Baid @if (response is null) { No data. } else { @foreach (var difficulty in Enum.GetValues()) { @if (difficulty is not Difficulty.None) { @if (songBestDataMap.ContainsKey(difficulty)) { @GameDataService.GetMusicNameBySongId(context.Item.SongId) @GameDataService.GetMusicArtistBySongId(context.Item.SongId) @GetGenreTitle(GameDataService.GetMusicGenreBySongId(context.Item.SongId)) @(context.Item.BestCrown) @if (context.Item.BestScoreRank is not ScoreRank.None) { @(context.Item.BestScoreRank) } } else { No data for selected difficulty. } } } }