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

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

package esendex.sdk.java.model.domain.impl;

import esendex.sdk.java.model.domain.request.VoiceMessageRequest;
import esendex.sdk.java.model.transfer.message.MessageRequestDto;

public class VoiceMessageRequestAssembler extends MessageRequestAssembler {
	
	private VoiceMessageRequest request;
	
	public VoiceMessageRequestAssembler(VoiceMessageRequest request) {
		super(request);
		this.request = request;
	}
	
	public MessageRequestDto createRequest() {		
		MessageRequestDto dto = new MessageRequestDto();		
		populateRequest(dto);		
		return dto;
	}
	
	@Override
	protected void populateRequest(MessageRequestDto dto) {
		super.populateRequest(dto);
		dto.setRetries(request.getRetries());
		dto.setLang(request.getMessageLanguage());
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy