コード例 #1
0
 public Task <JsonList <AlbumModel> > GetArtistAlbumsAsync(
     int artistId, AlbumFilter filter, int offset = 0, int limit = OpenTidlConstants.DEFAULT_LIMIT)
 {
     return(RestClient.HandleAsync <JsonList <AlbumModel> >(
                $"/artists/{artistId}/albums", new
     {
         filter = filter.ToString("F"),
         offset,
         limit,
         countryCode = GetCountryCode()
     }, null, "GET"));
 }
コード例 #2
0
 public async Task <JsonList <AlbumModel> > GetArtistAlbums(Int32 artistId, AlbumFilter filter, Int32 offset = 0, Int32 limit = 9999)
 {
     return(HandleResponse(await RestClient.Process <JsonList <AlbumModel> >(
                               RestUtility.FormatUrl("/artists/{id}/albums", new { id = artistId }), new
     {
         filter = filter.ToString(),
         offset = offset,
         limit = limit,
         token = Configuration.Token,
         countryCode = GetCountryCode()
     }, null, "GET")));
 }
コード例 #3
0
 public async Task<JsonList<AlbumModel>> GetArtistAlbums(Int32 artistId, AlbumFilter filter, Int32 offset = 0, Int32 limit = 9999)
 {
     return HandleResponse(await RestClient.Process<JsonList<AlbumModel>>(
         RestUtility.FormatUrl("/artists/{id}/albums", new { id = artistId }), new
         {
             filter = filter.ToString(),
             offset = offset,
             limit = limit,
             token = Configuration.Token,
             countryCode = GetCountryCode()
         }, null, "GET"));
 }