Init project
This commit is contained in:
29
RobotApp.VDA5050/State/Error.cs
Normal file
29
RobotApp.VDA5050/State/Error.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user