using FluentValidation;
using SocialService.API.Application.Commands;

namespace SocialService.API.Application.Validations;

/// <summary>
/// EN: Validator for RespondToFriendRequestCommand.
/// VI: Validator cho RespondToFriendRequestCommand.
/// </summary>
public class RespondToFriendRequestCommandValidator : AbstractValidator<RespondToFriendRequestCommand>
{
    public RespondToFriendRequestCommandValidator()
    {
        RuleFor(x => x.RelationshipId)
            .NotEmpty().WithMessage("Relationship ID is required / ID quan hệ là bắt buộc");

        RuleFor(x => x.UserId)
            .NotEmpty().WithMessage("User ID is required / ID người dùng là bắt buộc");
    }
}
