Class MessageCollectionRequest<T extends MessageRequest>
java.lang.Object
esendex.sdk.java.model.domain.impl.BaseMessageRequest
esendex.sdk.java.model.domain.impl.MessageCollectionRequest<T>
- Type Parameters:
T
- the generic type
- All Implemented Interfaces:
Iterable<T>
- Direct Known Subclasses:
SmsMessageCollectionRequest
,VoiceMessageCollectionRequest
public abstract class MessageCollectionRequest<T extends MessageRequest>
extends BaseMessageRequest
implements Iterable<T>
The Class MessageCollectionRequest.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageCollectionRequest
(String account, List<T> messages, MessageType type) Instantiates a new message collection request.MessageCollectionRequest
(String account, T message, MessageType type) Instantiates a new message collection request. -
Method Summary
Modifier and TypeMethodDescriptioniterator()
void
setAccountReference
(String accountReference) void
setMessages
(List<T> messages) toString()
Methods inherited from class esendex.sdk.java.model.domain.impl.BaseMessageRequest
getCharacterSet, getFrom, getMessageType, getValidity, setCharacterSet, setFrom, setMessageType, setValidity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MessageCollectionRequest
Instantiates a new message collection request.- Parameters:
account
- the esendex accountmessages
- the messagestype
- the message type eg voice or sms
-
MessageCollectionRequest
Instantiates a new message collection request.- Parameters:
account
- the accountmessage
- the message
-
-
Method Details
-
getAccountReference
-
getMessages
-
setAccountReference
-
setMessages
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends MessageRequest>
-
toString
- Overrides:
toString
in classBaseMessageRequest
-