Initial commit
This commit is contained in:
26
srcs/RobotNet10/Shared/RobotNet.VDA5050/State/ActionState.cs
Normal file
26
srcs/RobotNet10/Shared/RobotNet.VDA5050/State/ActionState.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using RobotNet.VDA5050.Type;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.VDA5050.State;
|
||||
|
||||
public class ActionState
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("actionId")]
|
||||
public string ActionId { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("actionType")]
|
||||
public string ActionType { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("actionDescription")]
|
||||
public string? ActionDescription { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("actionStatus")]
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public ActionStatus ActionStatus { get; set; }
|
||||
|
||||
[JsonPropertyName("resultDescription")]
|
||||
public string ResultDescription { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user