27 lines
698 B
C#
27 lines
698 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; }
|
|
public Move Move { get; set; }
|
|
}
|
|
|
|
public class MoveResponse : IResponse
|
|
{
|
|
public string Action { get; }
|
|
public string Error { get; set; }
|
|
public string GameName { get; set; }
|
|
public Move Move { get; set; }
|
|
public string PlayerName { get; set; }
|
|
|
|
public MoveResponse(ClientAction action)
|
|
{
|
|
Action = action.ToString();
|
|
}
|
|
}
|
|
}
|