начало фронтэнда
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
public interface ICallRequest
|
||||
{
|
||||
Guid CallRequestId { get; }
|
||||
int CommandId { get; }
|
||||
int ClientId { get; }
|
||||
int ObjectId { get; }
|
||||
@@ -10,23 +11,25 @@ public interface ICallRequest
|
||||
|
||||
public class JsonCallRequest : ICallRequest
|
||||
{
|
||||
public Guid CallRequestId { get; } = Guid.NewGuid();
|
||||
public int CommandId { get; set; }
|
||||
public int ClientId { get; set; }
|
||||
public int ObjectId { get; set; } = -1;
|
||||
public object Parameter { get; set; }
|
||||
}
|
||||
public struct HardCallRequest : ICallRequest
|
||||
{
|
||||
public int CommandId => Command;
|
||||
public int ClientId => Client;
|
||||
public int ObjectId => Object;
|
||||
|
||||
public int Command;
|
||||
public int Client;
|
||||
public int Object;
|
||||
public object Parameter { get; set; }
|
||||
|
||||
public object? Parameter { get; set; }
|
||||
}
|
||||
// public struct HardCallRequest : ICallRequest
|
||||
// {
|
||||
// public Guid CallRequestId { get; } = Guid.NewGuid();
|
||||
// public int CommandId => Command;
|
||||
// public int ClientId => Client;
|
||||
// public int ObjectId => Object;
|
||||
//
|
||||
// public int Command;
|
||||
// public int Client;
|
||||
// public int Object;
|
||||
// public object Parameter { get; set; }
|
||||
//
|
||||
// }
|
||||
// public class CallRequest : SingletonCallRequest
|
||||
// {
|
||||
// public override int RequestTypeId => (int)RequestType.NonParametrized;
|
||||
|
||||
Reference in New Issue
Block a user