io.voucherify.client.callback.VoucherifyCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of voucherify-java-sdk Show documentation
Show all versions of voucherify-java-sdk Show documentation
Voucherify-java-sdk is a Java client (can be used in Android application as well) which was created to simplify integration with Voucherify backend (http://www.voucherify.io)
package io.voucherify.client.callback;
import io.voucherify.client.error.VoucherifyError;
public abstract class VoucherifyCallback {
private boolean cancelled;
public abstract void onSuccess(T result);
public void onFailure(VoucherifyError error) {}
public synchronized void cancel() {
this.cancelled = true;
}
public synchronized boolean isCancelled() {
return cancelled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy