io.voucherify.client.module.AbsModule 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.module;
import io.voucherify.client.api.VoucherifyApi;
import io.voucherify.client.module.AbsModule.Async;
import io.voucherify.client.module.AbsModule.Rx;
import java.util.concurrent.Executor;
abstract class AbsModule {
final Executor executor;
final VoucherifyApi api;
final A extAsync;
final R extRxJava;
AbsModule(VoucherifyApi api, Executor executor) {
this.api = api;
this.executor = executor;
this.extAsync = createAsyncExtension();
this.extRxJava = createRxJavaExtension();
}
abstract A createAsyncExtension();
abstract R createRxJavaExtension();
public abstract A async();
public abstract R rx();
public static class Rx {}
public static class Async {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy