use of org.musicbrainz.android.api.data.Release in project musicbrainz-android by jdamcd.
the class ReleaseLoader method getReleaseWithUserData.
private AsyncEntityResult<Release> getReleaseWithUserData() throws IOException {
Release release = client.lookupRelease(mbid);
UserData userData = client.lookupUserData(Entity.RELEASE_GROUP, release.getReleaseGroupMbid());
data = new AsyncEntityResult<Release>(LoaderStatus.SUCCESS, release, userData);
return data;
}
use of org.musicbrainz.android.api.data.Release in project musicbrainz-android by jdamcd.
the class MusicBrainzWebClient method lookupRelease.
@Override
public Release lookupRelease(String mbid) throws IOException {
HttpEntity entity = get(QueryBuilder.releaseLookup(mbid));
Release release = responseParser.parseRelease(entity.getContent());
entity.consumeContent();
return release;
}
use of org.musicbrainz.android.api.data.Release in project musicbrainz-android by jdamcd.
the class BarcodeReleaseLoader method getReleaseWithUserData.
private AsyncEntityResult<Release> getReleaseWithUserData() throws IOException {
Release release = client.lookupReleaseUsingBarcode(barcode);
UserData userData = client.lookupUserData(Entity.RELEASE_GROUP, release.getReleaseGroupMbid());
data = new AsyncEntityResult<Release>(LoaderStatus.SUCCESS, release, userData);
return data;
}
Aggregations