forked from ZeraGmbH/Blockly.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptInformation.cs
More file actions
45 lines (39 loc) · 1.06 KB
/
ScriptInformation.cs
File metadata and controls
45 lines (39 loc) · 1.06 KB
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
36
37
38
39
40
41
42
43
44
45
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
namespace BlocklyNet.Scripting.Engine;
/// <summary>
/// Describe a script.
/// </summary>
public class ScriptInformation
{
/// <summary>
/// The unique identifier of the script while it is active.
/// </summary>
[NotNull, Required]
public required string JobId { get; set; }
/// <summary>
/// The name of the script.
/// </summary>
[NotNull, Required]
public required string Name { get; set; }
/// <summary>
/// The type of the script.
/// </summary>
[NotNull, Required]
public required string ModelType { get; set; }
/// <summary>
/// Identifier of the script if known.
/// </summary>
public string? ScriptId { get; set; }
}
/// <summary>
/// Describe a script.
/// </summary>
public class ScriptInformationWithGroupStatus : ScriptInformation
{
/// <summary>
/// Information on the execution group status.
/// </summary>
[NotNull, Required]
public ScriptGroupStatus GroupStatus { get; set; } = null!;
}