You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change SMS Sending method to New Option Based Method
Now sendSmsByApplicationPreference method is replaced with sendSms
Only have to provide SMS as parameter. SMS is saved and received message is assigned inside the new method, so no need to assign status and message separately.
Example 1
Old Method
SmsSentResponse sent = smsManager.sendSmsByApplicationPreference(e.getReceipientNumber(), e.getSendingMessage(), sessionController.getApplicationPreference());
e.setSentSuccessfully(sent.isSentSuccefully());
e.setReceivedMessage(sent.getReceivedMessage());
getSmsFacade().edit(e);
New Method
Boolean sent = smsManager.sendSms(e);
if (sent) {
JsfUtil.addSuccessMessage("SMS Sent");
}else{
JsfUtil.addSuccessMessage("SMS Failed");
}
Example 2
Old Method
SmsSentResponse sent = smsManager.sendSmsByApplicationPreference(e.getReceipientNumber(), e.getSendingMessage(), sessionController.getApplicationPreference());
e.setSentSuccessfully(sent.isSentSuccefully());
e.setReceivedMessage(sent.getReceivedMessage());
getSmsFacade().edit(e);
New Method
Boolean sent = smsManager.sendSms(e);
Example 3
Old Method
SmsSentResponse sentSuccessfully = smsManager.sendSmsByApplicationPreference(e.getReceipientNumber(), e.getSendingMessage(), sessionController.getApplicationPreference());
e.setSentSuccessfully(sentSuccessfully.isSentSuccefully());
e.setReceivedMessage(sentSuccessfully.getReceivedMessage());
e.setSentAt(new Date());
getSmsFacade().edit(e);
New Method
Boolean sentSuccessfully = smsManager.sendSms(e);
The text was updated successfully, but these errors were encountered:
change SMS Sending method to New Option Based Method
Now sendSmsByApplicationPreference method is replaced with sendSms
Only have to provide SMS as parameter. SMS is saved and received message is assigned inside the new method, so no need to assign status and message separately.
Example 1
Old Method
SmsSentResponse sent = smsManager.sendSmsByApplicationPreference(e.getReceipientNumber(), e.getSendingMessage(), sessionController.getApplicationPreference());
e.setSentSuccessfully(sent.isSentSuccefully());
e.setReceivedMessage(sent.getReceivedMessage());
getSmsFacade().edit(e);
New Method
Boolean sent = smsManager.sendSms(e);
if (sent) {
JsfUtil.addSuccessMessage("SMS Sent");
}else{
JsfUtil.addSuccessMessage("SMS Failed");
}
Example 2
Old Method
SmsSentResponse sent = smsManager.sendSmsByApplicationPreference(e.getReceipientNumber(), e.getSendingMessage(), sessionController.getApplicationPreference());
e.setSentSuccessfully(sent.isSentSuccefully());
e.setReceivedMessage(sent.getReceivedMessage());
getSmsFacade().edit(e);
New Method
Boolean sent = smsManager.sendSms(e);
Example 3
Old Method
SmsSentResponse sentSuccessfully = smsManager.sendSmsByApplicationPreference(e.getReceipientNumber(), e.getSendingMessage(), sessionController.getApplicationPreference());
e.setSentSuccessfully(sentSuccessfully.isSentSuccefully());
e.setReceivedMessage(sentSuccessfully.getReceivedMessage());
e.setSentAt(new Date());
getSmsFacade().edit(e);
New Method
Boolean sentSuccessfully = smsManager.sendSms(e);
The text was updated successfully, but these errors were encountered: