@Override public void executeAsync() { try { QBPushNotifications.deleteEvent(1454326); Log.i(TAG, ">>> event successfully deleted"); } catch (QBResponseException e) { setException(e); } }
@Override public void execute() { QBPushNotifications.deleteEvent( 1454324, new QBEntityCallback<Void>() { @Override public void onSuccess(Void result, Bundle bundle) { Log.i(TAG, ">>> event successfully deleted"); } @Override public void onError(QBResponseException errors) { handleErrors(errors); } }); }