Init project
This commit is contained in:
12
RobotApp.VDA5050/InstantAction/ActionParameter.cs
Normal file
12
RobotApp.VDA5050/InstantAction/ActionParameter.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotApp.VDA5050.InstantAction;
|
||||
|
||||
#nullable disable
|
||||
public class ActionParameter
|
||||
{
|
||||
[Required]
|
||||
public string Key { get; set; } = "";
|
||||
[Required]
|
||||
public string Value { get; set; } = "";
|
||||
}
|
||||
23
RobotApp.VDA5050/InstantAction/Actions.cs
Normal file
23
RobotApp.VDA5050/InstantAction/Actions.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotApp.VDA5050.InstantAction;
|
||||
|
||||
#nullable disable
|
||||
|
||||
public enum BlockingType
|
||||
{
|
||||
NONE,
|
||||
SOFT,
|
||||
HARD
|
||||
}
|
||||
public class Action
|
||||
{
|
||||
[Required]
|
||||
public string ActionType { get; set; } = "";
|
||||
[Required]
|
||||
public string ActionId { get; set; } = "";
|
||||
public string ActionDescription { get; set; } = "";
|
||||
[Required]
|
||||
public string BlockingType { get; set; } = "";
|
||||
public ActionParameter[] ActionParameters { get; set; } = [];
|
||||
}
|
||||
13
RobotApp.VDA5050/InstantAction/InstantActionsMsg.cs
Normal file
13
RobotApp.VDA5050/InstantAction/InstantActionsMsg.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace RobotApp.VDA5050.InstantAction;
|
||||
|
||||
#nullable disable
|
||||
|
||||
public class InstantActionsMsg
|
||||
{
|
||||
public uint HeaderId { get; set; }
|
||||
public string Timestamp { get; set; } = "";
|
||||
public string Version { get; set; } = "";
|
||||
public string Manufacturer { get; set; } = "";
|
||||
public string SerialNumber { get; set; } = "";
|
||||
public Action[] Actions { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user