Change function name
This commit is contained in:
parent
1d4523c4b0
commit
c0bcf8eccc
@ -29,7 +29,7 @@ public partial class Songs
|
||||
|
||||
var language = await JSRuntime.InvokeAsync<string>("blazorCulture.get");
|
||||
|
||||
musicMap = GameDataService.GetMusicMap();
|
||||
musicMap = GameDataService.GetMusicList();
|
||||
|
||||
response.SongBestData.ForEach(data =>
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ public class GameDataService : IGameDataService
|
||||
return data;
|
||||
}
|
||||
|
||||
public List<MusicDetail> GetMusicMap()
|
||||
public List<MusicDetail> GetMusicList()
|
||||
{
|
||||
return musicMap.Values.Where(musicDetail => musicDetail.SongId != 0).ToList();
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ public interface IGameDataService
|
||||
{
|
||||
public Task InitializeAsync(string dataBaseUrl);
|
||||
|
||||
public List<MusicDetail> GetMusicMap();
|
||||
public List<MusicDetail> GetMusicList();
|
||||
|
||||
public string GetMusicNameBySongId(uint songId, string? language = null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user