Method SubmitAttachment
SubmitAttachment(AttachmentBinaryObjectType)
Übergibt ein Binär-Attachment an DIWASS und liefert dessen zentrale Kennung zurück.
Roh-Form, in der Aufrufer das Infotech.Zedal.Documents.V1.Diwass.Waste.Model.V1.AttachmentBinaryObjectType selbst
vorbefüllen — inklusive Magic-String-type_id. Für neuen Code den
Enum-Overload SubmitAttachment(byte[], AttachmentTypeId, string, string, bool)
bevorzugen.
Task<AttachmentSubmissionResponseType> SubmitAttachment(AttachmentBinaryObjectType attachment)
Parameters
attachmentAttachmentBinaryObjectType
Returns
- Task<AttachmentSubmissionResponseType>
SubmitAttachment(byte[], AttachmentTypeId, string, string, bool)
Übergibt ein Binär-Attachment an DIWASS — Convenience-Form mit typsicherem
AttachmentTypeId. Setzt type_id, mime_code,
filename und contains_personal_data intern und ruft den
Submit-Endpoint auf.
Task<AttachmentSubmissionResponseType> SubmitAttachment(byte[] content, AttachmentTypeId typeId, string mimeCode, string filename, bool containsPersonalData = false)
Parameters
contentbyte[]Roh-Bytes der Datei.
typeIdAttachmentTypeIdDIWASS-Klassifikator des Attachments.
mimeCodestringMIME-Type (z.B.
application/pdf).filenamestringOriginaldateiname, wie er DIWASS übergeben wird.
containsPersonalDataboolFlag laut DIWASS-Spec — Default
false.
Returns
- Task<AttachmentSubmissionResponseType>