[650] feat: 乘客屏 路侧 V2N 事件弹框完成功能实现,以及 Caller 调用接口;

This commit is contained in:
aibingbing
2024-06-20 10:34:49 +08:00
parent b7fa4ff81f
commit 67b99edbfd
9 changed files with 303 additions and 113 deletions

View File

@@ -1,6 +1,6 @@
package com.mogo.eagle.core.function.call.hmi
import com.mogo.eagle.core.data.road.RoadV2NEventWindowBean
import com.mogo.eagle.core.data.v2x.RoadV2NEventWindowBean
import com.mogo.eagle.core.function.api.hmi.v2n.IRoadV2NEventWindowListener
import com.mogo.eagle.core.function.call.base.CallerBase
import java.util.UUID
@@ -15,10 +15,21 @@ object CallerRoadV2NEventWindowListenerManager : CallerBase<IRoadV2NEventWindowL
iconResId: Int,
hintStr: String,
isNeedTTS: Boolean,
cameraIp: String
cameraIp: String,
lon: Double,
lat: Double
): String {
val uuid = UUID.randomUUID().toString()
val data = RoadV2NEventWindowBean(uuid, timestamp, iconResId, hintStr, isNeedTTS, cameraIp)
val data = RoadV2NEventWindowBean(
uuid,
timestamp,
iconResId,
hintStr,
isNeedTTS,
cameraIp,
lon,
lat
)
M_LISTENERS.forEach {
val listener = it.value
listener.show(data)