Class MailjetMessageMapping
java.lang.Object
es.kukenan.smartfi.microservice.communication.service.provider.impl.mailjet.MailjetMessageMapping
This class holds static methods to map object to a MailJet
Message object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static MessageAttachmentcreateMessageAttachment(Attachment attachment) static Messagemap(NotificationRequest request, Template template) Convert an object to a MailJetMessageobject.
-
Constructor Details
-
MailjetMessageMapping
public MailjetMessageMapping()
-
-
Method Details
-
map
Convert an object to a MailJetMessageobject.- Parameters:
request- theNotificationRequestobject.template- the message template.- Returns:
- Message a
Messageobject with the given data.
-
createMessageAttachment
-