using System.Net.Sockets; namespace WIDESEAWCS_Tasks.Workflow.Abstractions { /// /// 机器人前缀命令处理器接口 /// /// /// 前缀命令是指以特定前缀开头的命令,后面跟随逗号分隔的参数。 /// 当前支持:pickfinished(取货完成)、putfinished(放货完成) /// public interface IRobotPrefixCommandHandler { /// /// 检查消息是否为前缀命令 /// /// 消息内容(通常是小写形式) /// 如果是前缀命令返回 true bool IsPrefixCommand(string message); /// /// 处理前缀命令 /// /// 原始消息内容 /// 机器人当前状态 /// TCP 客户端连接,用于发送响应 Task HandleAsync(string message, RobotSocketState state, TcpClient client); } }