Initial commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
using RobotNet10.MapEditor.Shared.DTOs.Edge;
|
||||
|
||||
namespace RobotNet10.MapEditor.Shared.DTOs.Requests;
|
||||
|
||||
/// <summary>
|
||||
/// Request to create a new edge
|
||||
/// Coordinates in METERS (world coordinates)
|
||||
/// </summary>
|
||||
public class CreateEdgeRequest
|
||||
{
|
||||
public Guid LayoutLevelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Start point X coordinate in METERS
|
||||
/// </summary>
|
||||
public double X1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Start point Y coordinate in METERS
|
||||
/// </summary>
|
||||
public double Y1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// End point X coordinate in METERS
|
||||
/// </summary>
|
||||
public double X2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// End point Y coordinate in METERS
|
||||
/// </summary>
|
||||
public double Y2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional edge name (if not provided, auto-generated)
|
||||
/// </summary>
|
||||
[System.ComponentModel.DataAnnotations.StringLength(256, ErrorMessage = "EdgeName must not exceed 256 characters")]
|
||||
public string? EdgeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional edge description
|
||||
/// </summary>
|
||||
[System.ComponentModel.DataAnnotations.StringLength(10000, ErrorMessage = "EdgeDescription must not exceed 10000 characters")]
|
||||
public string? EdgeDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional vehicle properties for this edge
|
||||
/// </summary>
|
||||
public List<EdgeVehiclePropertyDto>? VehicleProperties { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user