[6.9.0][Feat]路口车龙进消息盒子

This commit is contained in:
chenfufeng
2025-01-02 16:14:09 +08:00
parent d9c16b08b5
commit 3e75998a39
2 changed files with 14 additions and 1 deletions

View File

@@ -13,7 +13,9 @@ import com.mogo.eagle.core.data.map.entity.MarkerExploreWay
import com.mogo.eagle.core.data.map.entity.MarkerLocation
import com.mogo.eagle.core.data.map.entity.V2XRoadEventEntity
import com.mogo.eagle.core.data.msgbox.MsgBoxBean
import com.mogo.eagle.core.data.msgbox.MsgBoxType
import com.mogo.eagle.core.data.msgbox.MsgBoxType.V2X
import com.mogo.eagle.core.data.msgbox.NDEMsg
import com.mogo.eagle.core.data.msgbox.V2XMsg
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotIdentifyListener
import com.mogo.eagle.core.function.api.autopilot.IMoGoV2nNioEventListener
@@ -477,6 +479,17 @@ internal object V2NIdentifyDrawer: IEventDismissListener {
if (!shiGu.isNullOrEmpty()) {
drawShiGu(shiGu)
}
val chelong = trafficData?.find { itx ->
itx.addAttribute == MessagePad.AdditionalAttribute.ATTR_ROAD_CONGESTION
}
if (chelong != null) {
saveMsgBox(MsgBoxBean(
MsgBoxType.NDE,
NDEMsg(
"","路口车龙","前方路口有车龙"
)
))
}
}

View File

@@ -167,7 +167,7 @@ object DataManager {
CallerMsgBoxListenerManager.invokeListener(MsgCategory.SYS_INFO, msg)
}
MsgBoxType.OBU, MsgBoxType.NOTICE, MsgBoxType.OPERATION,MsgBoxType.OTA -> {
MsgBoxType.OBU, MsgBoxType.NOTICE, MsgBoxType.OPERATION,MsgBoxType.OTA, MsgBoxType.NDE -> {
synchronized(this) {
notifyList.add(msg)
}