Files
Print_server/Inspectron.Epson/Queue/PrintResult.cs
2026-01-21 10:37:33 +01:00

15 lines
400 B
C#

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);
}