Initial commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotNet10.MapEditor.Shared.DTOs.Requests;
|
||||
|
||||
/// <summary>
|
||||
/// Request to create a new station
|
||||
/// </summary>
|
||||
public class CreateStationRequest
|
||||
{
|
||||
public Guid LayoutLevelId { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "StationId is required")]
|
||||
[StringLength(64, ErrorMessage = "StationId must not exceed 64 characters")]
|
||||
public string StationId { get; set; } = string.Empty;
|
||||
|
||||
[StringLength(256, ErrorMessage = "StationName must not exceed 256 characters")]
|
||||
public string? StationName { get; set; }
|
||||
|
||||
[StringLength(10000, ErrorMessage = "StationDescription must not exceed 10000 characters")]
|
||||
public string? StationDescription { get; set; }
|
||||
public double? StationHeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// X coordinate in METERS
|
||||
/// </summary>
|
||||
public double X { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Y coordinate in METERS
|
||||
/// </summary>
|
||||
public double Y { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Theta orientation in radians (optional)
|
||||
/// </summary>
|
||||
public double? Theta { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Node IDs to link as interaction nodes
|
||||
/// </summary>
|
||||
public List<Guid>? InteractionNodeIds { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user