com.fonedynamics.BatchMessageRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fonedynamics-apiclient Show documentation
Show all versions of fonedynamics-apiclient Show documentation
JDK 1.7 client library for Fone Dynamics services.
package com.fonedynamics;
import java.util.ArrayList;
import java.util.List;
/**
* The request to a BatchMessage.
*/
public class BatchMessageRequest
{
// The messages to be sent.
private List Messages;
/**
* The messages to be sent.
* @return The messages to be sent
*/
public final List getMessages()
{
return Messages;
}
// Set messages to be sent
private void setMessages(Iterable value)
{
Messages = new ArrayList();
for (MessageResource msg: value) {
Messages.add(msg);
}
}
/**
* Constructs a new BatchMessageRequest with the specified messages.
* @param messages The messages to be sent
*/
public BatchMessageRequest(Iterable messages)
{
// persist
setMessages(messages);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy