начало фронтэнда

This commit is contained in:
2025-01-15 10:14:21 +03:00
parent da88225686
commit 27259d0079
8 changed files with 81 additions and 55 deletions
+16 -13
View File
@@ -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;