using RobotNet10.MapEditor.Shared.DTOs.Node;
using RobotNet10.MapEditor.Shared.DTOs.Edge;
namespace RobotNet10.MapEditor.Shared.DTOs.Requests;
///
/// Request to save all layout changes (nodes and edges) in a batch operation
///
public class SaveLayoutDataRequest
{
///
/// Layout level ID
///
public Guid LayoutLevelId { get; set; }
///
/// Nodes to update (only modified nodes should be included)
///
public List Nodes { get; set; } = new();
///
/// Edges to update (only modified edges should be included)
///
public List Edges { get; set; } = new();
}
///
/// Node update item for batch save
///
public class NodeUpdateItem
{
public Guid Id { get; set; }
public double? X { get; set; }
public double? Y { get; set; }
public string? NodeName { get; set; }
public string? NodeDescription { get; set; }
public string? MapId { get; set; }
public List? VehicleProperties { get; set; }
}
///
/// Edge update item for batch save
///
public class EdgeUpdateItem
{
public Guid Id { get; set; }
public string? EdgeName { get; set; }
public string? EdgeDescription { get; set; }
public List? VehicleProperties { get; set; }
}