public static printdetails ToDataTransferObject(IPrintDetails printDetails) { if (printDetails == null) { return(null); } var printDetailsDataTransferObject = new printdetails { recipient = ToDataTransferObject((IPrint)printDetails.PrintRecipient), returnaddress = ToDataTransferObject((IPrint)printDetails.PrintReturnRecipient), color = printDetails.PrintColors.ToPrintColors(), nondeliverablehandling = printDetails.NondeliverableHandling.ToNondeliverablehandling(), printinstructions = ToDataTransferObject(printDetails.PrintInstructions) }; return(printDetailsDataTransferObject); }
/// <summary> /// The PrintFallbackDeadline to be attached to a Message /// </summary> /// <param name="printifunreadafter"> /// The deadline by which the recipient must have read the message, or else it will go to print. /// </param> /// <param name="printDetails"> /// The details for the print fallback, if the recipient did not read the message within the deadline. /// </param> public PrintIfUnread(DateTime printifunreadafter, IPrintDetails printDetails) { PrintIfUnreadAfter = printifunreadafter; PrintDetails = printDetails; }