esendex.sdk.java.model.domain.impl.SentMessageResponseAssembler 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 esendex.sdk.java.model.domain.response.SentMessageResponse;
import esendex.sdk.java.model.transfer.message.MessageResponseDto;
public class SentMessageResponseAssembler extends MessageResponseAssembler {
public SentMessageResponseAssembler(MessageResponseDto dto) {
super(dto);
}
public SentMessageResponse createResponse() {
SentMessageResponseImpl response = new SentMessageResponseImpl();
populateResponse(response);
return response;
}
protected void populateResponse(SentMessageResponseImpl response) {
super.populateResponse(response);
response.setDeliveredAt(dto.getDeliveredat());
response.setLastStatusAt(dto.getLaststatusat());
response.setSentAt(dto.getSentat());
response.setSubmittedAt(dto.getSubmittedat());
response.setUserName(dto.getUsername());
}
}