修改文件名称,添加push内容体字段
This commit is contained in:
@@ -9,7 +9,7 @@ import android.view.animation.OvershootInterpolator
|
||||
import com.mogo.commons.mvp.MvpFragment
|
||||
import com.mogo.commons.voice.AIAssist
|
||||
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
|
||||
import com.mogo.eagle.core.data.notice.NoticePushData
|
||||
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
|
||||
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import com.mogo.eagle.core.function.hmi.notification.WarningFloat
|
||||
@@ -210,9 +210,9 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
|
||||
|
||||
/**
|
||||
* 展示云公告顶部弹窗
|
||||
* @param pushData
|
||||
* @param trafficStylePushData
|
||||
*/
|
||||
override fun showNoticeForTrafficWithData(pushData: NoticePushData) {
|
||||
override fun showNoticeForTrafficWithData(trafficStylePushData: NoticeTrafficStylePushData) {
|
||||
activity.let {
|
||||
val noticeBannerView = this.getContext()?.let { it1 -> NoticeBannerView(it1) }
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.mogo.eagle.core.function.hmi.ui
|
||||
|
||||
import com.mogo.commons.mvp.IView
|
||||
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
|
||||
import com.mogo.eagle.core.data.notice.NoticePushData
|
||||
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
|
||||
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
|
||||
|
||||
|
||||
@@ -99,8 +99,8 @@ interface MoGoWarningContract {
|
||||
|
||||
/**
|
||||
* 展示云公告顶部弹窗
|
||||
* @param pushData
|
||||
* @param trafficStylePushData
|
||||
*/
|
||||
fun showNoticeForTrafficWithData(pushData: NoticePushData)
|
||||
fun showNoticeForTrafficWithData(trafficStylePushData: NoticeTrafficStylePushData)
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
|
||||
import com.mogo.eagle.core.data.notice.NoticeTrafficInfo;
|
||||
import com.mogo.eagle.core.data.notice.NoticeTrafficStyleInfo;
|
||||
import com.mogo.eagle.core.function.hmi.R;
|
||||
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ public class NoticeBannerView extends ConstraintLayout {
|
||||
}
|
||||
|
||||
//数据改变刷新UI
|
||||
public void pushBeanChanged(NoticeTrafficInfo info){
|
||||
public void pushBeanChanged(NoticeTrafficStyleInfo info){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import androidx.fragment.app.Fragment;
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
import com.mogo.eagle.core.data.notice.NoticeNormalData;
|
||||
import com.mogo.eagle.core.data.notice.NoticePushData;
|
||||
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData;
|
||||
import com.mogo.eagle.core.function.api.notice.IMoGoNoticeProvider;
|
||||
import com.mogo.eagle.core.function.hmi.ui.MoGoHmiFragment;
|
||||
|
||||
@@ -54,7 +54,7 @@ public class NoticeProvider implements IMoGoNoticeProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void showNoticeForTrafficWithData(NoticePushData pushData) {
|
||||
public void showNoticeForTrafficWithData(NoticeTrafficStylePushData pushData) {
|
||||
mMoGoHmiFragment.showNoticeForTrafficWithData(pushData);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.mogo.eagle.core.function.notice.test
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import com.mogo.eagle.core.data.notice.NoticePushData
|
||||
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
import com.mogo.utils.logger.Logger
|
||||
|
||||
@@ -30,7 +30,7 @@ class TestNoticeBroadcastReceiver: BroadcastReceiver() {
|
||||
|
||||
private fun dispatchSceneTest(sceneType: Int) {
|
||||
if (sceneType == 301001) {
|
||||
val pushData = NoticePushData()
|
||||
val pushData = NoticeTrafficStylePushData()
|
||||
pushData.msg = "交警测试公告"
|
||||
pushData.content = "交警测试公告内容"
|
||||
CallerHmiManager.showTrafficBanner(pushData)
|
||||
|
||||
Reference in New Issue
Block a user