private static void ConfigureSendDocumentRequest(SimpleMapper mapper) { mapper.CreateMap <SendDocumentRequest, IppRequestMessage>((src, map) => { var dst = new IppRequestMessage { IppOperation = IppOperation.SendDocument, Document = src.LastDocument ? null : src.Document }; mapper.Map <IIppJobRequest, IppRequestMessage>(src, dst); var operation = dst.OperationAttributes; operation.Add(new IppAttribute(Tag.Boolean, "last-document", src.LastDocument)); if (src.DocumentAttributes != null) { map.Map(src.DocumentAttributes, dst); } return(dst); }); mapper.CreateMap <IppResponseMessage, SendDocumentResponse>((src, map) => { var dst = new SendDocumentResponse(); map.Map <IppResponseMessage, IIppJobResponse>(src, dst); return(dst); }); }
public SendDocumentResponse SendDocument(SendDocumentRequest sendDocumentRequest) { Log.Info(nameof(SendDocument)); return(SendDocumentResponse.Parse(ExecuteAction(sendDocumentRequest))); }
public SendDocumentResponse SendDocument(SendDocumentRequest sendDocumentRequest) { return(SendDocumentResponse.Parse(ExecuteAction(sendDocumentRequest))); }