30 lines
683 B
C#
30 lines
683 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace RobotNet.VDA5050.Factsheet;
|
|
|
|
public class PolygonPoint
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("x")]
|
|
public double X { get; set; }
|
|
|
|
[JsonPropertyName("y")]
|
|
[Required]
|
|
public double Y { get; set; }
|
|
}
|
|
|
|
public class Envelopes2d
|
|
{
|
|
[JsonPropertyName("set")]
|
|
[Required]
|
|
public string Set { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("polygonPoints")]
|
|
[Required]
|
|
public PolygonPoint[] PolygonPoints { get; set; } = [];
|
|
|
|
[JsonPropertyName("description")]
|
|
public string Description { get; set; } = string.Empty;
|
|
}
|