use of org.musicbrainz.android.api.data.UserCollection in project musicbrainz-android by jdamcd.
the class MusicBrainzWebClient method lookupCollection.
@Override
public UserCollection lookupCollection(String mbid) throws IOException {
HttpEntity entity = get(QueryBuilder.collectionLookup(mbid));
UserCollection collection = responseParser.parseCollectionLookup(entity.getContent());
entity.consumeContent();
return collection;
}
use of org.musicbrainz.android.api.data.UserCollection in project musicbrainz-android by jdamcd.
the class CollectionFragment method handleResult.
private void handleResult(AsyncResult<UserCollection> result) {
switch(result.getStatus()) {
case SUCCESS:
UserCollection collection = result.getData();
setListAdapter(new ReleaseInfoAdapter(getActivity(), R.layout.list_collection_release, collection.getReleases()));
break;
case EXCEPTION:
showConnectionErrorWarning();
}
}
Aggregations