public class VoiceController extends BaseController
httpCallBack| Constructor and Description |
|---|
VoiceController() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculatePrice(VoiceMessageCollection voiceMessages)
Calculate voice price
|
void |
calculatePriceAsync(VoiceMessageCollection voiceMessages,
APICallBack<String> callBack)
Calculate voice price
|
String |
cancelVoiceMessage(int messageId)
Update voice message status as cancelled
|
void |
cancelVoiceMessageAsync(int messageId,
APICallBack<String> callBack)
Update voice message status as cancelled
|
String |
cancelVoiceMessages()
Update all voice messages as cancelled
|
void |
cancelVoiceMessagesAsync(APICallBack<String> callBack)
Update all voice messages as cancelled
|
String |
exportVoiceHistory(String filename)
Export voice history
|
void |
exportVoiceHistoryAsync(String filename,
APICallBack<String> callBack)
Export voice history
|
static VoiceController |
getInstance()
Singleton pattern implementation
|
String |
getVoiceHistory(Integer dateFrom,
Integer dateTo)
Get all voice history
|
void |
getVoiceHistoryAsync(Integer dateFrom,
Integer dateTo,
APICallBack<String> callBack)
Get all voice history
|
String |
getVoiceLanguages()
Get all voice languages
|
void |
getVoiceLanguagesAsync(APICallBack<String> callBack)
Get all voice languages
|
String |
getVoiceReceipts()
Get all voice receipts
|
void |
getVoiceReceiptsAsync(APICallBack<String> callBack)
Get all voice receipts
|
String |
sendVoice(VoiceMessageCollection voiceMessages)
TODO: type endpoint description here
|
void |
sendVoiceAsync(VoiceMessageCollection voiceMessages,
APICallBack<String> callBack)
TODO: type endpoint description here
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static VoiceController getInstance()
public String sendVoice(VoiceMessageCollection voiceMessages) throws Throwable
voiceMessages - Required parameter: Example:Throwablepublic void sendVoiceAsync(VoiceMessageCollection voiceMessages, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
voiceMessages - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String calculatePrice(VoiceMessageCollection voiceMessages) throws Throwable
voiceMessages - Required parameter: Example:Throwablepublic void calculatePriceAsync(VoiceMessageCollection voiceMessages, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
voiceMessages - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getVoiceLanguages() throws Throwable
Throwablepublic void getVoiceLanguagesAsync(APICallBack<String> callBack)
public String getVoiceHistory(Integer dateFrom, Integer dateTo) throws Throwable
dateFrom - Optional parameter: Example:dateTo - Optional parameter: Example:Throwablepublic void getVoiceHistoryAsync(Integer dateFrom, Integer dateTo, APICallBack<String> callBack)
dateFrom - Optional parameter: Example:dateTo - Optional parameter: Example:public String getVoiceReceipts() throws Throwable
Throwablepublic void getVoiceReceiptsAsync(APICallBack<String> callBack)
public String cancelVoiceMessage(int messageId) throws Throwable
messageId - Required parameter: Example:Throwablepublic void cancelVoiceMessageAsync(int messageId,
APICallBack<String> callBack)
messageId - Required parameter: Example:public String cancelVoiceMessages() throws Throwable
Throwablepublic void cancelVoiceMessagesAsync(APICallBack<String> callBack)
public String exportVoiceHistory(String filename) throws Throwable
filename - Required parameter: Example:Throwablepublic void exportVoiceHistoryAsync(String filename, APICallBack<String> callBack)
filename - Required parameter: Example:Copyright © 2017. All rights reserved.