esendex.sdk.java.model.domain.impl.InboxMessageCollectionResponseAssembler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
The Esendex Java SDK is an easy to use client for our REST API that you can use to integrate SMS and Voice messaging into your Java application.
The newest version!
package esendex.sdk.java.model.domain.impl;
import java.util.ArrayList;
import java.util.List;
import esendex.sdk.java.model.domain.response.InboxMessageCollectionResponse;
import esendex.sdk.java.model.domain.response.InboxMessageResponse;
import esendex.sdk.java.model.transfer.message.MessageCollectionResponseDto;
import esendex.sdk.java.model.transfer.message.MessageResponseDto;
public class InboxMessageCollectionResponseAssembler extends MessageCollectionResponseAssembler {
public InboxMessageCollectionResponseAssembler(MessageCollectionResponseDto dto) {
super(dto);
}
public InboxMessageCollectionResponse createResponse() {
List messages = new ArrayList();
for (MessageResponseDto dto : collection) {
InboxMessageResponseAssembler assembler = new InboxMessageResponseAssembler(dto);
messages.add(assembler.createResponse());
}
InboxMessageCollectionResponseImpl response = new InboxMessageCollectionResponseImpl(messages);
populateResponse(response);
return response;
}
protected void populateResponse(InboxMessageCollectionResponseImpl response) {
super.populateResponse(response);
}
}