public class SampleSms extends Object
SmsRequest.send()
operation is chained onto
the SmsRequest.setListener(SmsListener)
method call in this example.
It could just as well have been broken into two steps.
import com.avaya.collaboration.sms.SmsFactory; import com.avaya.collaboration.sms.SmsRequest;
public class SampleSmsCode { public void invokeMeToSendSms() { final SmsRequest smsRequest = SmsFactory.getSmsRequest("17205551212", "Hello World!"); smsRequest.setUserName(myusername).setPassword(mypassword); smsRequest.setListener(new SampleSmsListener()).send(); } }
Copyright © 2014 Avaya. All Rights Reserved.