class EmailBroadcastingConverter extends AbstractConverter<Email, BroadcastingMessageResource> {

	@Override
	public BroadcastingMessageResource convert(final Email source, final BroadcastingMessageResource target) {
		
		target.setContent(source.getContent());
		target.setIsHtml(source.isHtml());
		target.setRecipients(getRecipients(source));
		target.setTopic(source.getTopic());
		
		return target;
	}

}