public class SMSController extends BaseController
httpCallBack| Constructor and Description |
|---|
SMSController() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculatePrice(SmsMessageCollection smsMessages)
Calculate sms price
|
void |
calculatePriceAsync(SmsMessageCollection smsMessages,
APICallBack<String> callBack)
Calculate sms price
|
String |
cancelAllScheduledSms()
Update all scheduled message as cancelled
|
void |
cancelAllScheduledSmsAsync(APICallBack<String> callBack)
Update all scheduled message as cancelled
|
String |
cancelScheduledSms(int messageId)
Update scheduled message as cancel
|
void |
cancelScheduledSmsAsync(int messageId,
APICallBack<String> callBack)
Update scheduled message as cancel
|
String |
createInboundSms(String url)
Create inbound sms
|
void |
createInboundSmsAsync(String url,
APICallBack<String> callBack)
Create inbound sms
|
String |
createReceipt(String url)
Add a delivery receipt
|
void |
createReceiptAsync(String url,
APICallBack<String> callBack)
Add a delivery receipt
|
String |
createSmsTemplate(SmsTemplate smsTemplate)
Create sms template
|
void |
createSmsTemplateAsync(SmsTemplate smsTemplate,
APICallBack<String> callBack)
Create sms template
|
String |
deleteSmsTemplate(int templateId)
Delete sms template
|
void |
deleteSmsTemplateAsync(int templateId,
APICallBack<String> callBack)
Delete sms template
|
String |
exportHistory(String filename)
Export all sms history
|
void |
exportHistoryAsync(String filename,
APICallBack<String> callBack)
Export all sms history
|
String |
getDeliveryReceipts()
Get all delivery receipts
|
void |
getDeliveryReceiptsAsync(APICallBack<String> callBack)
Get all delivery receipts
|
String |
getInboundSms()
Get all inbound sms
|
void |
getInboundSmsAsync(APICallBack<String> callBack)
Get all inbound sms
|
static SMSController |
getInstance()
Singleton pattern implementation
|
String |
getSmsHistory(Integer dateFrom,
Integer dateTo)
Get all sms history
|
void |
getSmsHistoryAsync(Integer dateFrom,
Integer dateTo,
APICallBack<String> callBack)
Get all sms history
|
String |
getSmsTemplates()
Get lists of all sms templates
|
void |
getSmsTemplatesAsync(APICallBack<String> callBack)
Get lists of all sms templates
|
String |
getSpecificDeliveryReceipt(int messageId)
Get a Specific Delivery Receipt
|
void |
getSpecificDeliveryReceiptAsync(int messageId,
APICallBack<String> callBack)
Get a Specific Delivery Receipt
|
String |
markAllInboundSMSAsRead(String dateBefore)
TODO: type endpoint description here
|
void |
markAllInboundSMSAsReadAsync(String dateBefore,
APICallBack<String> callBack)
TODO: type endpoint description here
|
String |
markReceiptsAsRead(String dateBefore)
Marked delivery receipts as read
|
void |
markReceiptsAsReadAsync(String dateBefore,
APICallBack<String> callBack)
Marked delivery receipts as read
|
String |
sendSms(SmsMessageCollection smsMessages)
TODO: type endpoint description here
|
void |
sendSmsAsync(SmsMessageCollection smsMessages,
APICallBack<String> callBack)
TODO: type endpoint description here
|
String |
updateSmsTemplate(String templateId,
SmsTemplate smsTemplate)
Update sms template
|
void |
updateSmsTemplateAsync(String templateId,
SmsTemplate smsTemplate,
APICallBack<String> callBack)
Update sms template
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static SMSController getInstance()
public String sendSms(SmsMessageCollection smsMessages) throws Throwable
smsMessages - Required parameter: Array of SmsMessage itemsThrowablepublic void sendSmsAsync(SmsMessageCollection smsMessages, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
smsMessages - Required parameter: Array of SmsMessage itemscom.fasterxml.jackson.core.JsonProcessingExceptionpublic String calculatePrice(SmsMessageCollection smsMessages) throws Throwable
smsMessages - Required parameter: Array of SmsMessage itemsThrowablepublic void calculatePriceAsync(SmsMessageCollection smsMessages, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
smsMessages - Required parameter: Array of SmsMessage itemscom.fasterxml.jackson.core.JsonProcessingExceptionpublic String getSmsHistory(Integer dateFrom, Integer dateTo) throws Throwable
dateFrom - Optional parameter: Start datedateTo - Optional parameter: End dateThrowablepublic void getSmsHistoryAsync(Integer dateFrom, Integer dateTo, APICallBack<String> callBack)
dateFrom - Optional parameter: Start datedateTo - Optional parameter: End datepublic String exportHistory(String filename) throws Throwable
filename - Required parameter: Example:Throwablepublic void exportHistoryAsync(String filename, APICallBack<String> callBack)
filename - Required parameter: Example:public String createReceipt(String url) throws Throwable
url - Required parameter: Your urlThrowablepublic void createReceiptAsync(String url, APICallBack<String> callBack)
url - Required parameter: Your urlpublic String markReceiptsAsRead(String dateBefore) throws Throwable
dateBefore - Optional parameter: Example:Throwablepublic void markReceiptsAsReadAsync(String dateBefore, APICallBack<String> callBack)
dateBefore - Optional parameter: Example:public String getInboundSms() throws Throwable
Throwablepublic void getInboundSmsAsync(APICallBack<String> callBack)
public String createInboundSms(String url) throws Throwable
url - Required parameter: Your urlThrowablepublic void createInboundSmsAsync(String url, APICallBack<String> callBack)
url - Required parameter: Your urlpublic String cancelScheduledSms(int messageId) throws Throwable
messageId - Required parameter: Example:Throwablepublic void cancelScheduledSmsAsync(int messageId,
APICallBack<String> callBack)
messageId - Required parameter: Example:public String cancelAllScheduledSms() throws Throwable
Throwablepublic void cancelAllScheduledSmsAsync(APICallBack<String> callBack)
public String createSmsTemplate(SmsTemplate smsTemplate) throws Throwable
smsTemplate - Required parameter: Example:Throwablepublic void createSmsTemplateAsync(SmsTemplate smsTemplate, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
smsTemplate - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String deleteSmsTemplate(int templateId) throws Throwable
templateId - Required parameter: Example:Throwablepublic void deleteSmsTemplateAsync(int templateId,
APICallBack<String> callBack)
templateId - Required parameter: Example:public String updateSmsTemplate(String templateId, SmsTemplate smsTemplate) throws Throwable
templateId - Required parameter: Example:smsTemplate - Required parameter: Example:Throwablepublic void updateSmsTemplateAsync(String templateId, SmsTemplate smsTemplate, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
templateId - Required parameter: Example:smsTemplate - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getDeliveryReceipts() throws Throwable
Throwablepublic void getDeliveryReceiptsAsync(APICallBack<String> callBack)
public String getSmsTemplates() throws Throwable
Throwablepublic void getSmsTemplatesAsync(APICallBack<String> callBack)
public String markAllInboundSMSAsRead(String dateBefore) throws Throwable
dateBefore - Optional parameter: An optional timestamp - mark all as read before this timestamp. If not given, all messages will be marked as read.Throwablepublic void markAllInboundSMSAsReadAsync(String dateBefore, APICallBack<String> callBack)
dateBefore - Optional parameter: An optional timestamp - mark all as read before this timestamp. If not given, all messages will be marked as read.public String getSpecificDeliveryReceipt(int messageId) throws Throwable
messageId - Required parameter: Example:Throwablepublic void getSpecificDeliveryReceiptAsync(int messageId,
APICallBack<String> callBack)
messageId - Required parameter: Example:Copyright © 2017. All rights reserved.