RobotApp/RobotApp.VDA5050/State/Error.cs
Đăng Nguyễn cf309cccba Init project
2025-09-10 10:48:39 +07:00

30 lines
606 B
C#

using System.ComponentModel.DataAnnotations;
namespace RobotApp.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; }
}