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")); }
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"))); }
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")); }