ru.dezhik.sms.sender.api.smsru.send.SMSRuBatchSendRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sms-sender Show documentation
Show all versions of sms-sender Show documentation
Library for sending SMS via sms.ru gateway
package ru.dezhik.sms.sender.api.smsru.send;
import java.util.ArrayList;
import java.util.Collection;
import ru.dezhik.sms.sender.api.smsru.Pair;
/**
* @author ilya.dezhin
*/
public class SMSRuBatchSendRequest extends AbstractSMSRuSendRequest {
Collection> messages = new ArrayList>();
public void addReceiverAndTextPair(Pair message) {
messages.add(message);
}
public void addReceiverAndText(String receiver, String text) {
messages.add(new Pair(receiver, text));
}
public Collection> getMessages() {
return messages;
}
@Override
public SMSRuBatchSendHandler getHandler() {
return new SMSRuBatchSendHandler();
}
}