public class SampleSmsListener extends Object implements SmsListener
SmsListener.responseReceived(SmsResponse) will be invoked for any responses to the
SmsRequest.send() invocation. SmsListener. import com.avaya.collaboration.sms.SmsListener; import com.avaya.collaboration.sms.SmsResponse;
public class SampleSmsListener implements SmsListener {@Overridepublic void responseReceived(final SmsResponse smsResponse) { System.out.println("receiveResponse status=" + smsResponse.getStatus()); System.out.println("receiveResponse detail=" + smsResponse.getDetail()); for (final String recipient : smsResponse.getFailedRecipients()) { System.out.println("could not send to " + recipient); } } }
| Constructor and Description |
|---|
SampleSmsListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
responseReceived(SmsResponse smsResponse)
Invoked upon receiving a response to a sent SMS.
|
public void responseReceived(SmsResponse smsResponse)
SmsListenerresponseReceived in interface SmsListenersmsResponse - the responseCopyright © 2021 Avaya. All rights reserved.