This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
26
server/AyaNova/models/dto/JobProgress.cs
Normal file
26
server/AyaNova/models/dto/JobProgress.cs
Normal 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; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user