mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
29 lines
779 B
C#
29 lines
779 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Wabbajack.Common.Serialization.Json;
|
|
|
|
namespace Wabbajack.BuildServer.Models.JobQueue
|
|
{
|
|
[JsonName("Job")]
|
|
public class Job
|
|
{
|
|
public enum JobPriority : int
|
|
{
|
|
Low,
|
|
Normal,
|
|
High,
|
|
}
|
|
|
|
public long Id { get; set; }
|
|
public DateTime? Started { get; set; }
|
|
public DateTime? Ended { get; set; }
|
|
public DateTime Created { get; set; } = DateTime.Now;
|
|
public JobPriority Priority { get; set; } = JobPriority.Normal;
|
|
public JobResult Result { get; set; }
|
|
public bool RequiresNexus { get; set; } = true;
|
|
public AJobPayload Payload { get; set; }
|
|
|
|
public Job OnSuccess { get; set; }
|
|
}
|
|
}
|