package org.mxchange.jmailee.model.delivery.wrapper;
import java.io.Serializable;
+import java.util.Locale;
import java.util.Properties;
+import javax.mail.Address;
/**
* A generic wrapper interface for mail delivery.
public interface WrapableEmailDelivery extends Serializable {
/**
- * Getter for body
+ * Getter fo template name
* <p>
- * @return Body
+ * @return Template name
*/
- String getBody ();
+ String getTemplateName ();
/**
- * Setter for body
+ * Setter fo template name
* <p>
- * @param body Body
+ * @param templateName Template name
*/
- void setBody (final String body);
+ void setTemplateName (final String templateName);
/**
- * Getter for recipient's email address
+ * Getter for recipient email address
* <p>
- * @return Recipient's email address
+ * @return Email address recipient
*/
- String getEmailAddress ();
+ Address getRecipient ();
/**
- * Setter for recipient's email address
+ * Setter for recipient email address
* <p>
- * @param emailAddress Recipient's email address
+ * @param recipient Email address recipient
*/
- void setEmailAddress (final String emailAddress);
+ void setRecipient (final Address recipient);
/**
* Getter for optional properties
* <p>
* @return Optional properties
*/
- Properties[] getProperties ();
+ Properties getTemplateVariables ();
/**
* Setter for optional properties
* <p>
* @param properties Optional properties
*/
- void setProperties (final Properties[] properties);
+ void setTemplateVariables (final Properties properties);
/**
* Getter for subject line
*/
void setSubjectLine (final String subjectLine);
+ /**
+ * Getter for locale
+ * <p>
+ * @return Locale instance
+ */
+ Locale getLocale ();
+
+ /**
+ * Setter for locale
+ * <p>
+ * @param locale Locale instance
+ */
+ void setLocale (final Locale locale);
+
}