This commit is contained in:
unknown
2020-10-28 10:51:11 +08:00
parent 4f22536909
commit fae1897a00
5 changed files with 31 additions and 14 deletions

View File

@@ -3,21 +3,25 @@ package com.mogo.service.connection;
/**
* 消息回调
*/
public interface IMogoOnWebSocketMessageListener< T > {
public interface IMogoOnWebSocketMessageListener<T> {
default WebSocketMsgType getDownLinkType(){
default WebSocketMsgType getDownLinkType() {
return null;
}
default WebSocketMsgType getUpLinkType(){
default WebSocketMsgType getUpLinkType() {
return null;
}
default void onMsgReceived(T obj){
default Class<T> target() {
return null;
}
default void onMsgReceived(T obj) {
}
default void onError(String errorMsg){
default void onError(String errorMsg) {
}
}