This commit is contained in:
2022-09-27 23:06:28 +00:00
parent 1d706b4bb7
commit 153978785c
9 changed files with 142 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ namespace AyaNova.Models
/// </summary>
public string JobInfo { get; set; }//json as string of any required extra info for job
public string Progress {get;set;}//any type of text digestible by client showing progress of job, typically just a string i.e. "133/344"
public OpsJob()
{
@@ -53,6 +54,7 @@ namespace AyaNova.Models
AType = AyaType.NoType;
JobStatus = JobStatus.Sleeping;
JobInfo = null;
Progress=string.Empty;
}

View File

@@ -0,0 +1,26 @@
using AyaNova.Biz;
using System;
namespace AyaNova.Models
{
/// <summary>
/// Job Progress
/// </summary>
public class JobProgress
{
/// <summary>
/// Progress string
/// </summary>
/// <returns>string</returns>
public string Progress { get; set; }
/// <summary>
/// Status of the job
/// </summary>
/// <returns>Job status</returns>
public JobStatus JobStatus { get; set; }
}
}