From 8a0829ef692b920273c3b93601935e28dde04702 Mon Sep 17 00:00:00 2001 From: Glax Date: Mon, 3 Mar 2025 21:11:39 +0100 Subject: [PATCH] JobState set enum to bytes with fixed values --- API/Schema/Jobs/JobState.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/API/Schema/Jobs/JobState.cs b/API/Schema/Jobs/JobState.cs index b9907c7..062376e 100644 --- a/API/Schema/Jobs/JobState.cs +++ b/API/Schema/Jobs/JobState.cs @@ -1,8 +1,13 @@ namespace API.Schema.Jobs; -public enum JobState +public enum JobState : byte { - Waiting, - Running, - Completed + //Values 0-63 Preparation Stages + Waiting = 0, + //64-127 Running Stages + Running = 64, + //128-191 Completion Stages + Completed = 128, + //192-255 Error stages + Failed = 192 } \ No newline at end of file