Initial commit
This commit is contained in:
35
srcs/RobotNet10/Shared/RobotNet.VDA5050/State/Information.cs
Normal file
35
srcs/RobotNet10/Shared/RobotNet.VDA5050/State/Information.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user