Initial commit

This commit is contained in:
2026-07-03 16:31:37 +07:00
commit 899c7c637d
1939 changed files with 641750 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using RobotNet.VDA5050.Type;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace RobotNet.VDA5050.State;
public class ErrorReference
{
[Required]
[JsonPropertyName("referenceKey")]
public string ReferenceKey { get; set; } = string.Empty;
[Required]
[JsonPropertyName("referenceValue")]
public string ReferenceValue { get; set; } = string.Empty;
}
public class Error
{
[Required]
[JsonPropertyName("errorType")]
public string ErrorType { get; set; } = string.Empty;
[JsonPropertyName("errorReferences")]
public ErrorReference[]? ErrorReferences { get; set; }
[JsonPropertyName("errorDescription")]
public string? ErrorDescription { get; set; }
[JsonPropertyName("errorHint")]
public string? ErrorHint { get; set; }
[JsonPropertyName("errorLevel")]
[JsonConverter(typeof(JsonStringEnumConverter))]
[Required]
public ErrorLevel ErrorLevel { get; set; }
}