Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using RobotNet.VDA5050.Type;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.VDA5050.InstantAction;
|
||||
|
||||
public class Action
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("actionType")]
|
||||
public string ActionType { get; set; } = "";
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("actionId")]
|
||||
public string ActionId { get; set; } = "";
|
||||
|
||||
[JsonPropertyName("actionDescription")]
|
||||
public string? ActionDescription { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("blockingType")]
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public BlockingType BlockingType { get; set; }
|
||||
|
||||
[JsonPropertyName("actionParameters")]
|
||||
public ActionParameter[]? ActionParameters { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user