From f3edcd0af4e77c876d8e18b9cfae3a3ab72ed2fe Mon Sep 17 00:00:00 2001 From: XShine555 Date: Fri, 20 Mar 2026 01:37:34 +0100 Subject: [PATCH] States --- Domain/Entities/Job.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Domain/Entities/Job.cs b/Domain/Entities/Job.cs index 6c20331..4b2f8c9 100644 --- a/Domain/Entities/Job.cs +++ b/Domain/Entities/Job.cs @@ -15,6 +15,12 @@ namespace Musify.Domain.Entities [Required] public JobState JobState { get; set; } = JobState.Pending; + public bool IsCompleted => JobState == JobState.Completed; + + public bool IsFailed => JobState == JobState.Failed; + + public bool IsPending => JobState == JobState.Pending; + [Required] public required string Payload { get; set; }