Interface ClientCommandStrategy
- All Known Implementing Classes:
AbstractClientCommandStrategy,AckCommandStrategy,ByeCommandStrategy,InfoCommandStrategy,InviteCommandStrategy,MessageCommandStrategy,NotifyCommandStrategy,RegisterCommandStrategy,SubscribeCommandStrategy
public interface ClientCommandStrategy
客户端命令策略接口
定义统一的命令执行策略,支持不同类型的GB28181命令
- Author:
- luna
-
Method Summary
Modifier and TypeMethodDescriptionexecute(FromDevice fromDevice, ToDevice toDevice, Event errorEvent, Event okEvent, Object... params) 执行命令(带事件)execute(FromDevice fromDevice, ToDevice toDevice, Object... params) 执行命令获取命令描述获取命令类型
-
Method Details
-
execute
执行命令- Parameters:
fromDevice- 发送设备toDevice- 接收设备params- 命令参数- Returns:
- callId
-
execute
String execute(FromDevice fromDevice, ToDevice toDevice, Event errorEvent, Event okEvent, Object... params) 执行命令(带事件)- Parameters:
fromDevice- 发送设备toDevice- 接收设备errorEvent- 错误事件okEvent- 成功事件params- 命令参数- Returns:
- callId
-
getCommandType
String getCommandType()获取命令类型- Returns:
- 命令类型
-
getCommandDescription
String getCommandDescription()获取命令描述- Returns:
- 命令描述
-