using FluentValidation;

namespace Monitoring.Features.CameraViews.CreateCameraView;

public class CreateCameraViewValidator : AbstractValidator<CreateCameraViewRequest>
{
	public CreateCameraViewValidator()
	{
		RuleFor(x => x.CameraId).NotEmpty();
		RuleFor(x => x.AlarmId).NotEmpty();
		RuleFor(x => x.StartVideo).LessThanOrEqualTo(x => x.EndVideo);
		RuleFor(x => x.DateTime).NotEmpty();
	}
}
