28 lines
766 B
C#
28 lines
766 B
C#
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; }
|
|
}
|