RobotNet/RobotNet.RobotShares/VDA5050/State/Error.cs
2025-10-15 15:15:53 +07:00

30 lines
618 B
C#

using System.ComponentModel.DataAnnotations;
namespace RobotNet.RobotShares.VDA5050.State;
#nullable disable
public enum ErrorLevel
{
NONE,
WARNING,
FATAL
}
public class ErrorReferences
{
[Required]
public string ReferenceKey { get; set; }
[Required]
public string ReferenceValue { get; set; }
}
public class Error
{
[Required]
public string ErrorType { get; set; }
public ErrorReferences[] ErrorReferences { get; set; }
public string ErrorDescription { get; set; }
public string ErrorHint { get; set; }
[Required]
public string ErrorLevel { get; set; }
}