44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
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; }
|
|
}
|
|
|