class Search {

	public List<TrackEntity> searchforTracks(String searchItem, int limit) {
		SearchResult searchResult = this.spotifyAPICalls.searchInSpotify(searchItem, "track", limit);
		if (searchResult != null) {
			this.trackSearchResults = createTrackData(searchResult.getTracks());
		} else {
			this.trackSearchResults = new ArrayList<>();
		}
		return this.trackSearchResults;
	}

}