public class FaxController extends BaseController
httpCallBack| Constructor and Description |
|---|
FaxController() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculatePrice(FaxMessageCollection faxMessage)
Calculate Total Price for Fax Messages sent
|
void |
calculatePriceAsync(FaxMessageCollection faxMessage,
APICallBack<String> callBack)
Calculate Total Price for Fax Messages sent
|
String |
faxReceiptList()
Get List of Fax Receipts
|
void |
faxReceiptListAsync(APICallBack<String> callBack)
Get List of Fax Receipts
|
String |
getFaxHistory(int dateFrom,
int dateTo,
String q,
String order)
Get a list of Fax History.
|
void |
getFaxHistoryAsync(int dateFrom,
int dateTo,
String q,
String order,
APICallBack<String> callBack)
Get a list of Fax History.
|
String |
getFaxReceipt(int messageId)
Get a single fax receipt based on message id.
|
void |
getFaxReceiptAsync(int messageId,
APICallBack<String> callBack)
Get a single fax receipt based on message id.
|
static FaxController |
getInstance()
Singleton pattern implementation
|
String |
sendFax(FaxMessageCollection faxMessage)
Send a fax using supplied supported file-types.
|
void |
sendFaxAsync(FaxMessageCollection faxMessage,
APICallBack<String> callBack)
Send a fax using supplied supported file-types.
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static FaxController getInstance()
public String getFaxReceipt(int messageId) throws Throwable
messageId - Required parameter: Example:Throwablepublic void getFaxReceiptAsync(int messageId,
APICallBack<String> callBack)
messageId - Required parameter: Example:public String getFaxHistory(int dateFrom, int dateTo, String q, String order) throws Throwable
dateFrom - Required parameter: Customize result by setting from date (timestsamp) Example: 1457572619.dateTo - Required parameter: Customize result by setting to date (timestamp) Example: 1457573000.q - Required parameter: Custom query Example: status:Sent,status_code:201.order - Required parameter: Order result by Example: date_added:desc,list_id:desc.Throwablepublic void getFaxHistoryAsync(int dateFrom,
int dateTo,
String q,
String order,
APICallBack<String> callBack)
dateFrom - Required parameter: Customize result by setting from date (timestsamp) Example: 1457572619.dateTo - Required parameter: Customize result by setting to date (timestamp) Example: 1457573000.q - Required parameter: Custom query Example: status:Sent,status_code:201.order - Required parameter: Order result by Example: date_added:desc,list_id:desc.public String faxReceiptList() throws Throwable
Throwablepublic void faxReceiptListAsync(APICallBack<String> callBack)
public String calculatePrice(FaxMessageCollection faxMessage) throws Throwable
faxMessage - Required parameter: Example:Throwablepublic void calculatePriceAsync(FaxMessageCollection faxMessage, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
faxMessage - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String sendFax(FaxMessageCollection faxMessage) throws Throwable
faxMessage - Required parameter: Example:Throwablepublic void sendFaxAsync(FaxMessageCollection faxMessage, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
faxMessage - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2017. All rights reserved.