X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjmailee%2Fmodel%2Fdelivery%2Fwrapper%2FEmailDeliveryWrapper.java;h=00d0cdbe041945fd7ab144bf9e1e09edf1711fdb;hb=e0dfa327f9e6417f1ab169c3b979e87ac9035edd;hp=b26c932b45b43853a7eb15d37698efbbae697cf8;hpb=c096be5e2947fe80e2547a6febe5ff29f21e4632;p=jmailer-ee.git diff --git a/src/org/mxchange/jmailee/model/delivery/wrapper/EmailDeliveryWrapper.java b/src/org/mxchange/jmailee/model/delivery/wrapper/EmailDeliveryWrapper.java index b26c932..00d0cdb 100644 --- a/src/org/mxchange/jmailee/model/delivery/wrapper/EmailDeliveryWrapper.java +++ b/src/org/mxchange/jmailee/model/delivery/wrapper/EmailDeliveryWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Häder + * Copyright (C) 2016, 2017 Free Software Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,7 +40,7 @@ public class EmailDeliveryWrapper implements WrapableEmailDelivery { /** * Recipient email address */ - private Address recipient; + private Address recipientAddress; /** * Subject line @@ -57,6 +57,24 @@ public class EmailDeliveryWrapper implements WrapableEmailDelivery { */ private Properties templateVariables; + /** + * Constructor with all required fields + *

+ * @param recipientAddress Recipient's email address + * @param subjectLine Subject line (internationalized) + * @param templateName Template name + * @param templateVariables Any template variables, at least one + * @param locale Recipient's locale + */ + public EmailDeliveryWrapper (final Address recipientAddress, final String subjectLine, final String templateName, final Properties templateVariables, final Locale locale) { + // Set all fields + this.recipientAddress = recipientAddress; + this.subjectLine = subjectLine; + this.templateName = templateName; + this.templateVariables = templateVariables; + this.locale = locale; + } + @Override public Locale getLocale () { return this.locale; @@ -68,13 +86,13 @@ public class EmailDeliveryWrapper implements WrapableEmailDelivery { } @Override - public Address getRecipient () { - return this.recipient; + public Address getRecipientAddress () { + return this.recipientAddress; } @Override - public void setRecipient (final Address recipient) { - this.recipient = recipient; + public void setRecipientAddress (final Address recipientAddress) { + this.recipientAddress = recipientAddress; } @Override