use of org.musicbrainz.android.api.data.ReleaseGroupInfo in project musicbrainz-android by jdamcd.
the class MusicBrainzWebClient method searchReleaseGroup.
@Override
public LinkedList<ReleaseGroupInfo> searchReleaseGroup(String searchTerm) throws IOException {
HttpEntity entity = get(QueryBuilder.releaseGroupSearch(searchTerm));
LinkedList<ReleaseGroupInfo> releaseGroups = responseParser.parseReleaseGroupSearch(entity.getContent());
entity.consumeContent();
return releaseGroups;
}
use of org.musicbrainz.android.api.data.ReleaseGroupInfo in project musicbrainz-android by jdamcd.
the class MusicBrainzWebClient method browseArtistReleaseGroups.
private ArrayList<ReleaseGroupInfo> browseArtistReleaseGroups(String mbid) throws IOException {
HttpEntity entity = get(QueryBuilder.artistReleaseGroupBrowse(mbid, 0));
ArrayList<ReleaseGroupInfo> releases = responseParser.parseReleaseGroupBrowse(entity.getContent());
entity.consumeContent();
Collections.sort(releases);
return releases;
}
Aggregations