All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.voucherify.client.module.AbsModule Maven / Gradle / Ivy

Go to download

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)

There is a newer version: 16.0.2
Show newest version
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