билдится на старом дотнете
This commit is contained in:
@@ -1,24 +1,26 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
||||
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
|
||||
|
||||
namespace mROA.Implementation;
|
||||
|
||||
public interface ICallRequest
|
||||
namespace mROA.Implementation
|
||||
{
|
||||
Guid Id { get; }
|
||||
int CommandId { get; }
|
||||
int ObjectId { get; }
|
||||
object? Parameter { get; }
|
||||
}
|
||||
public interface ICallRequest
|
||||
{
|
||||
Guid Id { get; }
|
||||
int CommandId { get; }
|
||||
int ObjectId { get; }
|
||||
object? Parameter { get; }
|
||||
}
|
||||
|
||||
public class DefaultCallRequest : ICallRequest
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public int CommandId { get; init; }
|
||||
public int ObjectId { get; init; } = -1;
|
||||
public class DefaultCallRequest : ICallRequest
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public int CommandId { get; set; }
|
||||
public int ObjectId { get; set; } = -1;
|
||||
|
||||
[JsonIgnore]
|
||||
public Type? ParameterType { get; init; }
|
||||
public object? Parameter { get; set; }
|
||||
[JsonIgnore]
|
||||
public Type? ParameterType { get; set; }
|
||||
public object? Parameter { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user