Search in sources :

Example 1 with RepositoryReleaseService

use of com.meisolsson.githubsdk.service.repositories.RepositoryReleaseService in project gh4a by slapperwan.

the class ReleaseInfoActivity method loadRelease.

private void loadRelease(boolean force) {
    RepositoryReleaseService service = ServiceFactory.get(RepositoryReleaseService.class, force);
    service.getRelease(mRepoOwner, mRepoName, mReleaseId).map(ApiHelpers::throwOnFailure).compose(makeLoaderSingle(ID_LOADER_RELEASE, force)).subscribe(result -> {
        mRelease = result;
        handleReleaseReady();
        setContentShown(true);
    }, this::handleLoadFailure);
}
Also used : ApiHelpers(com.gh4a.utils.ApiHelpers) RepositoryReleaseService(com.meisolsson.githubsdk.service.repositories.RepositoryReleaseService)

Aggregations

ApiHelpers (com.gh4a.utils.ApiHelpers)1 RepositoryReleaseService (com.meisolsson.githubsdk.service.repositories.RepositoryReleaseService)1