mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
21 lines
660 B
C#
21 lines
660 B
C#
|
|
using Data.SeaHavenIndustries.Enums;
|
||
|
|
|
||
|
|
namespace SeaHaven.Services.Helpers
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Shared terminal lifecycle statuses for board filters, read-only checks, and jobs.
|
||
|
|
/// Keep this as the single source of truth (EF expressions should copy these values inline).
|
||
|
|
/// </summary>
|
||
|
|
public static class LifecycleStatusSets
|
||
|
|
{
|
||
|
|
public static readonly LifecycleStatus[] Terminal =
|
||
|
|
{
|
||
|
|
LifecycleStatus.Completed,
|
||
|
|
LifecycleStatus.Canceled
|
||
|
|
};
|
||
|
|
|
||
|
|
public static bool IsTerminal(LifecycleStatus? status)
|
||
|
|
=> status is LifecycleStatus.Completed or LifecycleStatus.Canceled;
|
||
|
|
}
|
||
|
|
}
|