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

esendex.sdk.java.model.domain.impl.InboxMessageResponseAssembler Maven / Gradle / Ivy

Go to download

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.InboxMessageResponse;
import esendex.sdk.java.model.transfer.message.MessageResponseDto;

public class InboxMessageResponseAssembler extends MessageResponseAssembler {

	public InboxMessageResponseAssembler(MessageResponseDto dto) {
		super(dto);
	}
	
	public InboxMessageResponse createResponse() {
		InboxMessageResponseImpl response = new InboxMessageResponseImpl();
		populateResponse(response);
		return response;
	}
	
	protected void populateResponse(InboxMessageResponseImpl response) {
		super.populateResponse(response);
		response.setReadAt(dto.getReadat());
		response.setReadBy(dto.getReadby());
		response.setReceivedAt(dto.getReceivedat());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy