From 5775fcf908e8deb543f2a536e79e4dbcfcb56de6 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; }