Files
I150/srcs/RobotNet10/Shared/RobotNet.VDA5050/Factsheet/Envelopes2d.cs
2026-07-03 16:37:12 +07:00

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;
}