class Search {

	public List<AlbumEntity> searchforAlbums(String searchItem, int limit) {
		SearchResult searchResult = this.spotifyAPICalls.searchInSpotify(searchItem, "album", limit);
		if (searchResult != null) {
			this.albumSearchResults = createAlbumData(searchResult.getAlbums());
		} else {
			this.albumSearchResults = new ArrayList<>();
		}
		return this.albumSearchResults;
	}

}