концепт и интерфейсах
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
namespace mROA;
|
|
||||||
|
|
||||||
public class Class1
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
namespace mROA;
|
||||||
|
|
||||||
|
public interface ICommandExecution
|
||||||
|
{
|
||||||
|
int ExecutionId { get; set; }
|
||||||
|
|
||||||
|
int ClientId { get; set; }
|
||||||
|
int CommandId { get; set; }
|
||||||
|
|
||||||
|
void Cancel();
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace mROA;
|
||||||
|
|
||||||
|
public interface IExecuteModule
|
||||||
|
{
|
||||||
|
void Execute(int objectId, int commandId, object parameter);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
namespace mROA;
|
||||||
|
|
||||||
|
public interface IInputModule
|
||||||
|
{
|
||||||
|
void AddIncomingRequestHandler(Action<object> handler);
|
||||||
|
void SendResponse(ICommandExecution call, object response);
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace mROA;
|
||||||
|
|
||||||
|
public interface IInteractionModule
|
||||||
|
{
|
||||||
|
void SendTo(int clientId, byte[] message);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user