Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user