caller调用notice ui

This commit is contained in:
liujing
2021-10-29 17:40:03 +08:00
parent e966c92f19
commit eec497158d
6 changed files with 35 additions and 39 deletions

View File

@@ -1,6 +1,7 @@
package com.mogo.eagle.core.function.call.hmi
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.data.constants.MogoServicePaths.PATH_V2X_WARNING
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
import com.mogo.eagle.core.data.notice.NoticeNormalData
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
@@ -19,9 +20,6 @@ object CallerHmiManager : CallerBase() {
private val waringProviderApi: IMoGoWaringProvider
get() = getApiInstance(IMoGoWaringProvider::class.java, MogoServicePaths.PATH_V2X_WARNING)
private val noticeProviderApi: IMoGoNoticeProvider
get() = getApiInstance(IMoGoNoticeProvider::class.java, MogoServicePaths.PATH_AI_NOTICE)
/**
* 展示VR下V2X预警
*
@@ -135,7 +133,7 @@ object CallerHmiManager : CallerBase() {
* @param trafficStylePushData
*/
fun showTrafficBanner(trafficStylePushData: NoticeTrafficStylePushData?) {
noticeProviderApi.showNoticeForTrafficWithData(trafficStylePushData)
waringProviderApi.showNoticeForTrafficWithData(trafficStylePushData)
}
/**
@@ -143,7 +141,7 @@ object CallerHmiManager : CallerBase() {
*
*/
fun showNormalBanner(noticeNormal: NoticeNormalData) {
noticeProviderApi.showNoticeNormalData(noticeNormal)
waringProviderApi.showNoticeNormalData(noticeNormal)
}
}