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;
}
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;
}
Aggregations