добавлены реализации

This commit is contained in:
2025-01-11 22:44:29 +03:00
parent 7b60a07039
commit a4372ceb9e
14 changed files with 248 additions and 17 deletions
+34
View File
@@ -0,0 +1,34 @@
namespace mROA.Implementation;
public interface ICallRequest
{
int RequestTypeId { get; }
int CommandId { get; set; }
int ClientId { get; set; }
}
public class StaticCallRequest : ICallRequest
{
public virtual int RequestTypeId => (int)RequestType.Static;
public int CommandId { get; set; }
public int ClientId { get; set; }
}
public class CallRequest : StaticCallRequest
{
public override int RequestTypeId => (int)RequestType.NonParametrized;
public int ObjectId { get; set; }
}
public class ParametrizedCallRequest : CallRequest
{
public override int RequestTypeId => (int)RequestType.Parametrized;
public object Parameter { get; set; }
}
enum RequestType
{
Static,
NonParametrized,
Parametrized
}