All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.dezhik.sms.sender.api.smsru.send.SMSRuBatchSendRequest Maven / Gradle / Ivy

There is a newer version: 0.1.3
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy