Merge remote-tracking branch 'origin/demo/shunyi_vr_map' into demo/shunyi_vr_map

This commit is contained in:
tongchenfei
2020-10-27 10:11:56 +08:00
4 changed files with 22 additions and 17 deletions

View File

@@ -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){
}
}

View File

@@ -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;