Files
BQP/srcs/RobotNet10/Shared/RobotNet.VDA5050/InstantAction/Action.cs
2026-07-13 09:25:40 +07:00

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; }
}