36 lines
944 B
C#
36 lines
944 B
C#
using RobotNet.VDA5050.Type;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace RobotNet.VDA5050.State;
|
|
|
|
|
|
public class InfomationReference
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("referenceKey")]
|
|
public string ReferenceKey { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[JsonPropertyName("referenceValue")]
|
|
public string ReferenceValue { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class Information
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("infoType")]
|
|
public string InfoType { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("infoReferences")]
|
|
public InfomationReference[]? InfoReferences { get; set; }
|
|
|
|
[JsonPropertyName("infoDescription")]
|
|
public string? InfoDescription { get; set; }
|
|
|
|
[Required]
|
|
[JsonPropertyName("infoLevel")]
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public InfoLevel InfoLevel { get; set; }
|
|
}
|