RobotApp/RobotApp.Common.Shares/Dtos/RobotSimulationConfigDto.cs
Đăng Nguyễn 73038de662 update
2025-11-04 10:57:41 +07:00

46 lines
1.7 KiB
C#

using System.ComponentModel.DataAnnotations;
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotSimulationConfigDto
{
public Guid Id { get; set; }
public bool EnableSimulation { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationMaxVelocity { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationMaxAngularVelocity { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationAcceleration { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationDeceleration { 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 UpdateRobotSimulationConfigDto
{
public bool EnableSimulation { get; set; }
public double SimulationMaxVelocity { get; set; }
public double SimulationMaxAngularVelocity { get; set; }
public double SimulationAcceleration { get; set; }
public double SimulationDeceleration { get; set; }
public string Description { get; set; }
}
public record CreateRobotSimulationConfigDto
{
public bool EnableSimulation { get; set; }
public double SimulationMaxVelocity { get; set; }
public double SimulationMaxAngularVelocity { get; set; }
public double SimulationAcceleration { get; set; }
public double SimulationDeceleration { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}