21 lines
511 B
C#
21 lines
511 B
C#
namespace StellaOps.AuditPack.Services;
|
|
|
|
/// <summary>
|
|
/// Result of audit pack export.
|
|
/// </summary>
|
|
public sealed record ExportResult
|
|
{
|
|
public bool Success { get; init; }
|
|
public byte[]? Data { get; init; }
|
|
public string? ContentType { get; init; }
|
|
public string? Filename { get; init; }
|
|
public long SizeBytes { get; init; }
|
|
public string? Error { get; init; }
|
|
|
|
public static ExportResult Failed(string error) => new()
|
|
{
|
|
Success = false,
|
|
Error = error
|
|
};
|
|
}
|