Add project files.
This commit is contained in:
20
DXApp.TemplateKitProject/Models/PdfExtractionResult.cs
Normal file
20
DXApp.TemplateKitProject/Models/PdfExtractionResult.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user