-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathScriptProgress.cs
More file actions
35 lines (30 loc) · 950 Bytes
/
ScriptProgress.cs
File metadata and controls
35 lines (30 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
namespace BlocklyNet.Scripting.Engine;
/// <summary>
/// Progress of an active script.
/// </summary>
public class ScriptProgress
{
/// <summary>
/// The unique identifier of the active script.
/// </summary>
[Required, NotNull]
public string JobId { get; set; } = null!;
/// <summary>
/// The progress information depending on the type of script.
/// </summary>
[Required, NotNull]
public object Info { get; set; } = null!;
/// <summary>
/// Secondary progress - order by nesting level and the start of
/// child script.
/// </summary>
[Required, NotNull]
public List<ProgressDetails> AllProgress { get; set; } = [];
/// <summary>
/// Information on the execution group status.
/// </summary>
[NotNull, Required]
public ScriptGroupStatus GroupStatus { get; set; } = null!;
}