35 lines
953 B
C#
35 lines
953 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace RobotNet.VDA5050.Visualization;
|
|
|
|
public class VisualizationMsg
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("headerId")]
|
|
public uint HeaderId { get; set; }
|
|
|
|
[Required]
|
|
[JsonPropertyName("timestamp")]
|
|
[JsonConverter(typeof(DateTimeConverter))]
|
|
public DateTime Timestamp { get; set; }
|
|
|
|
[Required]
|
|
[JsonPropertyName("version")]
|
|
public string Version { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[JsonPropertyName("manufacturer")]
|
|
public string Manufacturer { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[JsonPropertyName("serialNumber")]
|
|
public string SerialNumber { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("agvPosition")]
|
|
public AgvPosition AgvPosition { get; set; } = new();
|
|
|
|
[JsonPropertyName("velocity")]
|
|
public Velocity Velocity { get; set; } = new();
|
|
}
|