use of com.willshex.blogwt.client.api.download.event.DeleteGeneratedDownloadsEventHandler.DeleteGeneratedDownloadsSuccess in project blogwt by billy1380.
the class GeneratedDownloadController method deleteGeneratedDownload.
public void deleteGeneratedDownload(GeneratedDownload generatedDownload) {
final DeleteGeneratedDownloadsRequest input = ApiHelper.setAccessCode(new DeleteGeneratedDownloadsRequest());
input.session = SessionController.get().sessionForApiCall();
input.downloads = Arrays.asList(generatedDownload);
ApiHelper.createDownloadClient().deleteGeneratedDownloads(input, new AsyncCallback<DeleteGeneratedDownloadsResponse>() {
@Override
public void onSuccess(DeleteGeneratedDownloadsResponse output) {
DefaultEventBus.get().fireEventFromSource(new DeleteGeneratedDownloadsSuccess(input, output), GeneratedDownloadController.this);
}
@Override
public void onFailure(Throwable caught) {
DefaultEventBus.get().fireEventFromSource(new DeleteGeneratedDownloadsFailure(input, caught), GeneratedDownloadController.this);
}
});
}
Aggregations