using RobotApp.Common.Shares.Enums; using System.ComponentModel.DataAnnotations; namespace RobotApp.Common.Shares.Dtos; #nullable disable public record RobotConfigDto { public Guid Id { get; set; } public NavigationType NavigationType { get; set; } [Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")] public double RadiusWheel { get; set; } [Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")] public double Width { get; set; } [Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")] public double Length { get; set; } [Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")] public double Height { get; set; } public DateTime CreatedAt { get; set; } public DateTime UpdatedAt { get; set; } public bool IsActive { get; set; } [Required] public string ConfigName { get; set; } public string Description { get; set; } } public record UpdateRobotConfigDto { public NavigationType NavigationType { get; set; } public double RadiusWheel { get; set; } public double Width { get; set; } public double Length { get; set; } public double Height { get; set; } public string Description { get; set; } } public record CreateRobotConfigDto { public string ConfigName { get; set; } public string Description { get; set; } public NavigationType NavigationType { get; set; } public double RadiusWheel { get; set; } public double Width { get; set; } public double Length { get; set; } public double Height { get; set; } }