16 lines
455 B
C#
16 lines
455 B
C#
using FluentValidation;
|
|
using Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Messages;
|
|
using Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Types;
|
|
|
|
namespace Gameboard.ShogiUI.Sockets.Services.RequestValidators
|
|
{
|
|
public class JoinGameRequestValidator : AbstractValidator<JoinGameRequest>
|
|
{
|
|
public JoinGameRequestValidator()
|
|
{
|
|
RuleFor(_ => _.Action).Equal(ClientAction.JoinGame);
|
|
RuleFor(_ => _.GameName).NotEmpty();
|
|
}
|
|
}
|
|
}
|