53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using RobotNet10.MapEditor.Shared.DTOs.Node;
|
|
using RobotNet10.MapEditor.Shared.DTOs.Edge;
|
|
|
|
namespace RobotNet10.MapEditor.Shared.DTOs.Requests;
|
|
|
|
/// <summary>
|
|
/// Request to save all layout changes (nodes and edges) in a batch operation
|
|
/// </summary>
|
|
public class SaveLayoutDataRequest
|
|
{
|
|
/// <summary>
|
|
/// Layout level ID
|
|
/// </summary>
|
|
public Guid LayoutLevelId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Nodes to update (only modified nodes should be included)
|
|
/// </summary>
|
|
public List<NodeUpdateItem> Nodes { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Edges to update (only modified edges should be included)
|
|
/// </summary>
|
|
public List<EdgeUpdateItem> Edges { get; set; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Node update item for batch save
|
|
/// </summary>
|
|
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<NodeVehiclePropertyDto>? VehicleProperties { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Edge update item for batch save
|
|
/// </summary>
|
|
public class EdgeUpdateItem
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string? EdgeName { get; set; }
|
|
public string? EdgeDescription { get; set; }
|
|
public List<EdgeVehiclePropertyDto>? VehicleProperties { get; set; }
|
|
}
|
|
|
|
|