Move from the hand.
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
namespace Shogi.Contracts.Socket;
|
||||
|
||||
public interface ISocketResponse
|
||||
public interface ISocketMessage
|
||||
{
|
||||
SocketAction Action { get; }
|
||||
}
|
||||
|
||||
public class SocketResponse : ISocketResponse
|
||||
public class SocketResponse : ISocketMessage
|
||||
{
|
||||
public SocketAction Action { get; set; }
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using Shogi.Contracts.Types;
|
||||
|
||||
namespace Shogi.Contracts.Socket
|
||||
{
|
||||
public interface ISocketRequest
|
||||
{
|
||||
SocketAction Action { get; }
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Shogi.Contracts.Socket;
|
||||
|
||||
public class PlayerHasMovedMessage : ISocketResponse
|
||||
public class PlayerHasMovedMessage : ISocketMessage
|
||||
{
|
||||
public SocketAction Action { get; }
|
||||
public string SessionName { get; set; }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Shogi.Contracts.Socket;
|
||||
|
||||
public class SessionCreatedSocketMessage : ISocketResponse
|
||||
public class SessionCreatedSocketMessage : ISocketMessage
|
||||
{
|
||||
public SocketAction Action => SocketAction.SessionCreated;
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace Shogi.Contracts.Socket;
|
||||
|
||||
public class SessionJoinedByPlayerSocketMessage : ISocketResponse
|
||||
public class SessionJoinedByPlayerSocketMessage : ISocketMessage
|
||||
{
|
||||
public SocketAction Action => SocketAction.SessionJoined;
|
||||
|
||||
public string SessionName { get; }
|
||||
public string SessionName { get; set; }
|
||||
|
||||
public SessionJoinedByPlayerSocketMessage(string sessionName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user