using FluentValidation;
using PARR.API.Contracts.V1.Requests;
using PARR.Domain.Enums;

namespace PARR.API.Validators
{
    public class RobotStateRequestValidator : AbstractValidator<RobotStateRequest>
    {
        public RobotStateRequestValidator()
        {
            RuleFor(t => t.Robot).NotNull().IsInEnum().WithMessage($"Допустимые значения: {(int)RobotsAllEnum.TemplateOrder} ({RobotsAllEnum.TemplateOrder}), " +
                                                                                        $"{(int)RobotsAllEnum.ScheduleOrder} ({RobotsAllEnum.ScheduleOrder}), " +
                                                                                        $"{(int)RobotsAllEnum.TemplatesExport} ({RobotsAllEnum.TemplatesExport}), " +
                                                                                        $"{(int)RobotsAllEnum.ScheduleExport} ({RobotsAllEnum.ScheduleExport})");
        }
    }
}
