Exemple #1
0
        public static Recipient CreateRecipient(
            string streetAddress, string zipCode, string admLvl3, string admLvl2, string countryCode, string postageVector, string postageType, string type, string firstname, string lastname, string companyName,
            string email, string pec, List <string> attachmentFiles, string channel, string alternativeChannel, List <Keyword> keywords, List <CustomDataElement> customData)
        {
            PostalInfo postalInfo = PostalInfo.CreatePostalInfo(streetAddress, zipCode, admLvl3, admLvl2, countryCode, postageVector, postageType, type, firstname, lastname, companyName);

            return(CreateRecipient(email, pec, postalInfo, attachmentFiles, channel, alternativeChannel, keywords, customData));
        }
Exemple #2
0
 public Recipient(string email, string pec, PostalInfo postalInfo, RecipientAttachment attachments, Carrier carrier, MessageOptions messageOptions, List <CustomDataElement> customData)
 {
     this.email          = email;
     this.pec            = pec;
     this.postalInfo     = postalInfo;
     this.attachments    = attachments;
     this.carrier        = carrier;
     this.messageOptions = messageOptions;
     this.customData     = customData;
 }
Exemple #3
0
        private static Recipient CreateRecipient(string email, string pec, PostalInfo postalInfo, List <string> attachmentFiles, string channel, string alternativeChannel, List <Keyword> keywords, List <CustomDataElement> customData)
        {
            MessageOptions messageOptions = keywords != null ? new MessageOptions(keywords) : null;

            return(new Recipient(email, pec, postalInfo, new RecipientAttachment(attachmentFiles), new Carrier(channel, alternativeChannel), messageOptions, customData));
        }