refactoring

This commit is contained in:
EugeneTes
2026-01-21 10:37:33 +01:00
parent cb231801f1
commit 5cef04bf92
11 changed files with 793 additions and 33 deletions

View File

@@ -0,0 +1,14 @@
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);
}