mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:56:29 +00:00
739759628a
add DONE during inference, correct handling on C# side
26 lines
557 B
C#
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
|
|
} |