Search in sources :

Example 6 with ReleaseGroupInfo

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;
}
Also used : HttpEntity(org.apache.http.HttpEntity) ReleaseGroupInfo(org.musicbrainz.android.api.data.ReleaseGroupInfo)

Example 7 with ReleaseGroupInfo

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;
}
Also used : HttpEntity(org.apache.http.HttpEntity) ReleaseGroupInfo(org.musicbrainz.android.api.data.ReleaseGroupInfo)

Aggregations

ReleaseGroupInfo (org.musicbrainz.android.api.data.ReleaseGroupInfo)7 LayoutInflater (android.view.LayoutInflater)2 View (android.view.View)2 TextView (android.widget.TextView)2 HttpEntity (org.apache.http.HttpEntity)2 ReleaseArtist (org.musicbrainz.android.api.data.ReleaseArtist)1