remove unuse code and add interface
This commit is contained in:
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -26,6 +26,7 @@
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveModulePerSourceSet" value="false" />
|
||||
<option name="useQualifiedModuleNames" value="true" />
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,8 @@ public class TrafficLiveManager {
|
||||
public void getVehicleHeadLiveUrl(ITrafficLiveCallBack callBack){
|
||||
|
||||
}
|
||||
|
||||
public void getIntersectionLiveUrl(ITrafficLiveCallBack callBack){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user