public class AccountRechargeController extends BaseController
httpCallBack| Constructor and Description |
|---|
AccountRechargeController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCreditCardInfo()
Get Credit Card info
|
void |
getCreditCardInfoAsync(APICallBack<String> callBack)
Get Credit Card info
|
static AccountRechargeController |
getInstance()
Singleton pattern implementation
|
String |
getPackagesList(String country)
Get list of all packages
|
void |
getPackagesListAsync(String country,
APICallBack<String> callBack)
Get list of all packages
|
String |
getTransaction(String transactionId)
Get specific Transaction
|
void |
getTransactionAsync(String transactionId,
APICallBack<String> callBack)
Get specific Transaction
|
String |
getTransactions()
Get all transactions
|
void |
getTransactionsAsync(APICallBack<String> callBack)
Get all transactions
|
String |
purchasePackage(int packageId)
Purchase a package
|
void |
purchasePackageAsync(int packageId,
APICallBack<String> callBack)
Purchase a package
|
String |
updateCreditCardInfo(CreditCard creditCard)
Update credit card info
|
void |
updateCreditCardInfoAsync(CreditCard creditCard,
APICallBack<String> callBack)
Update credit card info
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static AccountRechargeController getInstance()
public String getCreditCardInfo() throws Throwable
Throwablepublic void getCreditCardInfoAsync(APICallBack<String> callBack)
public String updateCreditCardInfo(CreditCard creditCard) throws Throwable
creditCard - Required parameter: Example:Throwablepublic void updateCreditCardInfoAsync(CreditCard creditCard, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
creditCard - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getPackagesList(String country) throws Throwable
country - Optional parameter: Example:Throwablepublic void getPackagesListAsync(String country, APICallBack<String> callBack)
country - Optional parameter: Example:public String purchasePackage(int packageId) throws Throwable
packageId - Required parameter: Example:Throwablepublic void purchasePackageAsync(int packageId,
APICallBack<String> callBack)
packageId - Required parameter: Example:public String getTransactions() throws Throwable
Throwablepublic void getTransactionsAsync(APICallBack<String> callBack)
public String getTransaction(String transactionId) throws Throwable
transactionId - Required parameter: Example:Throwablepublic void getTransactionAsync(String transactionId, APICallBack<String> callBack)
transactionId - Required parameter: Example:Copyright © 2017. All rights reserved.