コード例 #1
0
        public async Task <SpotifyWCF.SongsModel> GetSongsByCategory(string category)
        {
            var songs = new SpotifyWCF.SongsModel();

            try
            {
                var request = new SpotifyWCF.GetListSongsBasedCategoryRequest
                {
                    category = category
                };

                var response = await _songService.GetListSongsBasedCategoryAsync(request);

                songs = response.GetListSongsBasedCategoryResult;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }

            return(songs);
        }
コード例 #2
0
 public GetListSongsBasedCategoryResponse(SpotifyWCF.SongsModel GetListSongsBasedCategoryResult)
 {
     this.GetListSongsBasedCategoryResult = GetListSongsBasedCategoryResult;
 }