Files
annotations/Azaion.CommonSecurity/DTO/Commands/RemoteCommand.cs
T
Alex Bezdieniezhnykh 739759628a fixed inference bugs
add DONE during inference, correct handling on C# side
2025-02-01 02:09:11 +02:00

26 lines
557 B
C#

using MessagePack;
namespace Azaion.CommonSecurity.DTO.Commands;
[MessagePackObject]
public class RemoteCommand(CommandType commandType, string? filename = null, byte[]? data = null)
{
[Key("CommandType")]
public CommandType CommandType { get; set; } = commandType;
[Key("Filename")]
public string? Filename { get; set; } = filename;
[Key("Data")]
public byte[]? Data { get; set; } = data;
}
public enum CommandType
{
None = 0,
GetUser = 10,
Load = 20,
Inference = 30,
StopInference = 40,
Exit = 100
}