20 lines
616 B
C#
20 lines
616 B
C#
namespace DXApp.TemplateKitProject.Models;
|
|
|
|
public class PdfExtractionResult
|
|
{
|
|
public List<ExtractedAttachment> 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; }
|
|
} |