Exemple #1
0
 public Options(Billing billing, Multicerta multicerta, Deadline deadline, Postal postal)
 {
     this.billing    = billing;
     this.multicerta = multicerta;
     this.deadline   = deadline;
     this.postal     = postal;
 }
Exemple #2
0
        public static PostQueueDto CreatePostQueue(Sender sender, Attachments attachments, List <Recipient> recipients, string subject, string body, bool useMulticerta, bool useMulticertaLegal, bool staple, bool globalStaple, string topic, List <CustomDataElement> customData)
        {
            Message    message    = new Message(subject, body);
            Billing    billing    = new Billing("INVOICE_" + topic.Replace(" ", "_").ToUpper());
            Multicerta multicerta = null;
            Deadline   deadline   = null;

            if (useMulticerta)
            {
                multicerta = new Multicerta(useMulticertaLegal);
                deadline   = new Deadline("read", 3600);
            }
            Postal  postal  = new Postal(true, new PrintOptions(true, "color", null, null, staple, globalStaple));
            Options options = new Options(billing, multicerta, deadline, postal);

            return(new PostQueueDto(new Dto.DataPayload <PostQueue>(new PostQueue("concrete", sender, attachments, recipients, message, options, topic, customData))));
        }