public async Task StepByStep() { BaiduRestService.GetService(this.Client.RestClient).Responsed += BaiduSongListServiceTest_Responsed; SongListContent songlistContent = await BaiduSongListService.GetService(this.Client).GedanAsync(1); foreach (var songlist in songlistContent.SongLists) { SongListInfoContent songlistInfoContent = await BaiduSongListService.GetService(this.Client).GedanInfoAsync(songlist.ListId); foreach (var song in songlistInfoContent.Songs) { SongInfoContent songInfoContent = await BaiduSongService.GetService(this.Client).GetInfoAsync(song.SongId); song.CopyFrom(songInfoContent.Item); } } BaiduRestService.GetService(this.Client.RestClient).Responsed -= BaiduSongListServiceTest_Responsed; }
public async Task GetInfosAsync() { Assert.IsFalse((await BaiduSongService.GetService(BaiduClient.Guest).GetInfosAsync("280171")).HasError); }