Files
DocumentService/DocumentService.Application/Common/DTOs/AttachmentCheckResult.cs
TekH 207c778f3a Refactor: Rename DocumentOperator to DocumentService
Updated project and solution files to rename and restructure
`DocumentOperator` to `DocumentService`. Modified project
references in `DocumentService.API.csproj`, `DocumentService.Application.csproj`,
and `DocumentService.Infrastructure.csproj` to reflect the new
naming convention. Updated `DocumentService.sln` to remove
old project references, add new ones, and adjust configuration
and nested project mappings accordingly. This change aligns
the project structure with the new naming convention.
2026-08-30 21:33:25 +02:00

44 lines
1.1 KiB
C#

namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// DTO for attachment check result returned to API layer
/// </summary>
public record AttachmentCheckResult
{
/// <summary>
/// Indicates whether the PDF contains any attachments
/// </summary>
public bool HasAttachments { get; init; }
/// <summary>
/// Total number of attachments in the PDF
/// </summary>
public int AttachmentCount { get; init; }
/// <summary>
/// List of attachment metadata (file details)
/// </summary>
public List<AttachmentDto> Attachments { get; init; } = new();
}
/// <summary>
/// DTO for individual attachment metadata
/// </summary>
public record AttachmentDto
{
/// <summary>
/// Attachment file name (e.g., "invoice.xml", "document.pdf")
/// </summary>
public string FileName { get; init; } = string.Empty;
/// <summary>
/// MIME type of the attachment (e.g., "text/xml", "application/pdf")
/// </summary>
public string MimeType { get; init; } = string.Empty;
/// <summary>
/// Attachment file size in bytes
/// </summary>
public long Size { get; init; }
}