31 lines
869 B
C#
31 lines
869 B
C#
using Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Interfaces;
|
|
using Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Types;
|
|
|
|
namespace Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Messages
|
|
{
|
|
public class MoveRequest : IRequest
|
|
{
|
|
public ClientAction Action { get; set; }
|
|
public string GameName { get; set; } = string.Empty;
|
|
public Move Move { get; set; } = new Move();
|
|
}
|
|
|
|
public class MoveResponse : IResponse
|
|
{
|
|
public string Action { get; }
|
|
public string Error { get; set; }
|
|
public string GameName { get; set; }
|
|
public BoardState BoardState { get; set; }
|
|
public string PlayerName { get; set; }
|
|
|
|
public MoveResponse(ClientAction action)
|
|
{
|
|
Action = action.ToString();
|
|
Error = string.Empty;
|
|
GameName = string.Empty;
|
|
BoardState = new BoardState();
|
|
PlayerName = string.Empty;
|
|
}
|
|
}
|
|
}
|