Search in sources :

Example 1 with Release

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;
}
Also used : UserData(org.musicbrainz.android.api.data.UserData) Release(org.musicbrainz.android.api.data.Release)

Example 2 with Release

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

Example 3 with 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;
}
Also used : UserData(org.musicbrainz.android.api.data.UserData) Release(org.musicbrainz.android.api.data.Release)

Aggregations

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