remove unuse code and add interface

This commit is contained in:
zhongchao
2021-02-04 18:12:24 +08:00
parent 8906d03d08
commit f05837b653
4 changed files with 8 additions and 5 deletions

1
.idea/gradle.xml generated
View File

@@ -26,6 +26,7 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

View File

@@ -181,15 +181,13 @@ public class SocketHandler {
webSocketData.setSeq(computeSendMsgTime());
webSocketData.setSn(MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn());
webSocketData.setData(GsonUtil.jsonFromObject(content));
String msg = GsonUtil.jsonFromObject(webSocketData);
int msgType = LOW_FREQUENCY_CHANNEL_ID;
if (cloudLocationInfo.size() > 2) {
msgType = HIGH_FREQUENCY_CHANNEL_ID;
}
MsgBody msgBody = new MsgBody();
msgBody.msgType(msgType);
msgBody.content(msg);
msgBody.content(webSocketData);
SocketManager.getInstance().sendMsg(mAppId, HEADER_TYPE, msgBody, msgId -> {
for (IMogoCloudOnMsgListener listener : onMsgListenerList) {
if (listener != null) {

View File

@@ -5,14 +5,14 @@ public class MoGoAiCloudTrafficLive {
/**
* 查看前方车辆直播
*/
public static void getVehicleHeadLiveUrl(ITrafficLiveCallBack callBack) {
public static void viewVehicleHeadLive(ITrafficLiveCallBack callBack) {
}
/**
* 查看前方路口直播
*/
public static void getIntersectionLiveUrl(ITrafficLiveCallBack callBack) {
public static void viewIntersectionLive(ITrafficLiveCallBack callBack) {
}
}

View File

@@ -23,4 +23,8 @@ public class TrafficLiveManager {
public void getVehicleHeadLiveUrl(ITrafficLiveCallBack callBack){
}
public void getIntersectionLiveUrl(ITrafficLiveCallBack callBack){
}
}