using FluentValidation;

using Monitoring.Common.Validators;

namespace Monitoring.Features.AlarmManagement.GetAlarmList;

public class GetAlarmListValidator : AbstractValidator<GetAlarmListRequest>
{
	public GetAlarmListValidator()
	{
		_ = RuleFor(x => x).SetValidator(new TableStateValidator());

		_ = RuleFor(x => x.AssetId).NotEmpty().When(x => x.AssetId.HasValue);
	}
}