Introduced a new `ResultType` enum to represent job execution result types, including `Ok`, `Error`, `Warning`, and `Unknown`. Added a `Result` property in the `ProfileHistory` class as a wrapper around the `ResultId` property, with logic to map `ResultId` to `ResultType` values. Updated `ProfileHistory.cs` to include necessary namespaces.
28 lines
553 B
C#
28 lines
553 B
C#
namespace ECMJobRunner.Domain.ValueObjects;
|
|
|
|
/// <summary>
|
|
/// Represents the result type of a job execution.
|
|
/// </summary>
|
|
public enum ResultType : byte
|
|
{
|
|
/// <summary>
|
|
/// The operation completed successfully.
|
|
/// </summary>
|
|
Ok = 0,
|
|
|
|
/// <summary>
|
|
/// The operation encountered an error.
|
|
/// </summary>
|
|
Error = 1,
|
|
|
|
/// <summary>
|
|
/// The operation completed with warnings.
|
|
/// </summary>
|
|
Warning = 2,
|
|
|
|
/// <summary>
|
|
/// The operation result is unknown.
|
|
/// </summary>
|
|
Unknown = 255
|
|
}
|