using System.ComponentModel.DataAnnotations; namespace RobotApp.Common.Shares.Dtos; #nullable disable public record RobotSafetyConfigDto { public Guid Id { get; set; } public double SafetySpeedVerySlow { get; set; } [Range(0, 10, ErrorMessage = "Value must be from 0 to 10")] public double SafetySpeedSlow { get; set; } [Range(0, 10, ErrorMessage = "Value must be from 0 to 10")] public double SafetySpeedNormal { get; set; } [Range(0, 10, ErrorMessage = "Value must be from 0 to 10")] public double SafetySpeedMedium { get; set; } [Range(0, 10, ErrorMessage = "Value must be from 0 to 10")] public double SafetySpeedOptimal { get; set; } [Range(0, 10, ErrorMessage = "Value must be from 0 to 10")] public double SafetySpeedFast { get; set; } [Range(0, 10, ErrorMessage = "Value must be from 0 to 10")] public double SafetySpeedVeryFast { 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 UpdateRobotSafetyConfigDto { public double SafetySpeedVerySlow { get; set; } public double SafetySpeedSlow { get; set; } public double SafetySpeedNormal { get; set; } public double SafetySpeedMedium { get; set; } public double SafetySpeedOptimal { get; set; } public double SafetySpeedFast { get; set; } public double SafetySpeedVeryFast { get; set; } public string Description { get; set; } } public record CreateRobotSafetyConfigDto { public double SafetySpeedVerySlow { get; set; } public double SafetySpeedSlow { get; set; } public double SafetySpeedNormal { get; set; } public double SafetySpeedMedium { get; set; } public double SafetySpeedOptimal { get; set; } public double SafetySpeedFast { get; set; } public double SafetySpeedVeryFast { get; set; } public string ConfigName { get; set; } public string Description { get; set; } }