using Gameboard.ShogiUI.Sockets.ServiceModels.Types; namespace Gameboard.ShogiUI.Sockets.ServiceModels.Socket { public class JoinByCodeRequest : IRequest { public ClientAction Action { get; set; } public string JoinCode { get; set; } = ""; } public class JoinGameRequest : IRequest { public ClientAction Action { get; set; } public string GameName { get; set; } = ""; } public class JoinGameResponse : ISocketResponse { public string Action { get; protected set; } public string GameName { get; set; } /// /// The player who joined the game. /// public string PlayerName { get; set; } public JoinGameResponse() { Action = ClientAction.JoinGame.ToString(); GameName = ""; PlayerName = ""; } } public class JoinByCodeResponse : JoinGameResponse, ISocketResponse { public JoinByCodeResponse() { Action = ClientAction.JoinByCode.ToString(); } } }