namespace DXApp.TemplateKitProject.Models; public class PdfExtractionResult { public List Attachments { get; init; } = []; public bool HasAttachments => Attachments.Count > 0; public ExtractedAttachment? ZugferdXmlAttachment => Attachments.FirstOrDefault(a => a.IsZugferdXml); public bool HasZugferdXml => ZugferdXmlAttachment is not null; } public class ExtractedAttachment { public string OriginalFileName { get; init; } public string SavedFilePath { get; init; } public long FileSizeBytes { get; init; } public bool IsZugferdXml { get; init; } }