Search in sources :

Example 1 with Artist

use of org.musicbrainz.android.api.data.Artist in project musicbrainz-android by jdamcd.

the class ArtistLoader method getArtistWithUserData.

private AsyncEntityResult<Artist> getArtistWithUserData() throws IOException {
    Artist artist = client.lookupArtist(mbid);
    UserData userData = client.lookupUserData(Entity.ARTIST, mbid);
    data = new AsyncEntityResult<Artist>(LoaderStatus.SUCCESS, artist, userData);
    return data;
}
Also used : Artist(org.musicbrainz.android.api.data.Artist) UserData(org.musicbrainz.android.api.data.UserData)

Example 2 with Artist

use of org.musicbrainz.android.api.data.Artist in project musicbrainz-android by jdamcd.

the class MusicBrainzWebClient method lookupArtist.

@Override
public Artist lookupArtist(String mbid) throws IOException {
    HttpEntity entity = get(QueryBuilder.artistLookup(mbid));
    Artist artist = responseParser.parseArtist(entity.getContent());
    entity.consumeContent();
    artist.setReleaseGroups(browseArtistReleaseGroups(mbid));
    return artist;
}
Also used : Artist(org.musicbrainz.android.api.data.Artist) HttpEntity(org.apache.http.HttpEntity)

Aggregations

Artist (org.musicbrainz.android.api.data.Artist)2 HttpEntity (org.apache.http.HttpEntity)1 UserData (org.musicbrainz.android.api.data.UserData)1