Files
BQP/srcs/RobotNet10/Shared/RobotNet10.MapEditor.Shared/DTOs/Requests/CreateEdgeRequest.cs
2026-07-13 09:25:40 +07:00

51 lines
1.5 KiB
C#

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