Files
Print_server/Inspectron.Epson/Queue/PrintResult.cs
2026-02-03 10:54:41 +01:00

16 lines
434 B
C#

namespace Inspectron.Epson.Queue;
public class PrintResult
{
public bool Success { get; }
public PrintErrorType ErrorType { get; }
private PrintResult(bool success, PrintErrorType errorType)
{
Success = success;
ErrorType = errorType;
}
public static PrintResult Ok() => new(true, PrintErrorType.None);
public static PrintResult Fail(PrintErrorType errorType) => new(false, errorType);
}