Merge remote-tracking branch 'origin/demo/shunyi_vr_map' into demo/shunyi_vr_map
This commit is contained in:
@@ -5,9 +5,15 @@ package com.mogo.service.connection;
|
||||
*/
|
||||
public interface IMogoOnWebSocketMessageListener< T > {
|
||||
|
||||
WebSocketMsgType getType();
|
||||
WebSocketMsgType getDownLinkType();
|
||||
|
||||
void onMsgReceived(T obj);
|
||||
WebSocketMsgType getUpLinkType();
|
||||
|
||||
void onError(String errorMsg);
|
||||
default void onMsgReceived(T obj){
|
||||
|
||||
}
|
||||
|
||||
default void onError(String errorMsg){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,8 @@ package com.mogo.service.connection;
|
||||
|
||||
public enum WebSocketMsgType {
|
||||
|
||||
MSG_TYPE_SELF(0,"自车数据"),
|
||||
MSG_TYPE_ADAS(1,"ADAS数据"),
|
||||
MSG_TYPE_SERVER(2,"服务端下发车辆信息");
|
||||
MSG_TYPE_UPLINK_CAR_DATA(0,"自车与ADAS数据"),
|
||||
MSG_TYPE_DOWNLINK_CAR_DATA(1,"服务端下发车辆信息");
|
||||
|
||||
private int msgType;
|
||||
private String msg;
|
||||
|
||||
Reference in New Issue
Block a user