| | |
| | | logger.debug("errorSubscribes.size:{}",errorSubscribes.size()); |
| | | } |
| | | |
| | | public interface Event { void response(EventResult eventResult) ; |
| | | public interface Event { void response(EventResult eventResult); |
| | | } |
| | | |
| | | /** |
| | |
| | | // 会话已结束 |
| | | dialogTerminated, |
| | | // 设备未找到 |
| | | deviceNotFoundEvent |
| | | deviceNotFoundEvent, |
| | | // 消息发送失败 |
| | | cmdSendFailEvent, |
| | | // 消息发送失败 |
| | | failedToGetPort |
| | | } |
| | | |
| | | public static class EventResult<EventObject>{ |
| | |
| | | public String callId; |
| | | public EventObject event; |
| | | |
| | | public EventResult() { |
| | | } |
| | | |
| | | public EventResult(EventObject event) { |
| | | this.event = event; |
| | | if (event instanceof ResponseEvent) { |