From f5088b61d0fe93e6510c26c980309137466b0fa0 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Thu, 29 Feb 2024 18:00:43 +0800 Subject: [PATCH] =?UTF-8?q?[6.3.0][Feat]=E6=96=B0=E5=A2=9E=E5=B7=A5?= =?UTF-8?q?=E6=8E=A7=E6=9C=BA=E8=BF=9E=E6=8E=A5=E7=8A=B6=E6=80=81=E3=80=81?= =?UTF-8?q?SSM=E7=AD=89=E6=B6=88=E6=81=AF=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/eagle/core/function/msgbox/DataManager.kt | 4 ++-- .../com/mogo/eagle/core/data/msgbox/AutopilotMsg.kt | 11 +++++++++++ .../com/mogo/eagle/core/data/msgbox/MsgBoxType.kt | 4 ++-- .../java/com/mogo/eagle/core/data/msgbox/SSMMsg.kt | 11 +++++++++++ 4 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/AutopilotMsg.kt create mode 100644 core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/SSMMsg.kt diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/msgbox/DataManager.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/msgbox/DataManager.kt index b185e1543e..6a67044de7 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/msgbox/DataManager.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/msgbox/DataManager.kt @@ -135,13 +135,13 @@ object DataManager { MsgBoxType.VOICE -> { CallerMsgBoxListenerManager.invokeListener(MsgCategory.VOICE_INFO, msg) } - MsgBoxType.OBU, MsgBoxType.NOTICE, MsgBoxType.OPERATION -> { + MsgBoxType.OBU, MsgBoxType.NOTICE, MsgBoxType.OPERATION, MsgBoxType.AUTOPILOT -> { synchronized(this) { notifyList.add(msg) } CallerMsgBoxListenerManager.invokeListener(MsgCategory.NOTICE, msg) } - MsgBoxType.REPORT -> { + MsgBoxType.REPORT, MsgBoxType.SSMINFO -> { synchronized(this) { sysInfoList.add(msg) } diff --git a/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/AutopilotMsg.kt b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/AutopilotMsg.kt new file mode 100644 index 0000000000..dbab931fb8 --- /dev/null +++ b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/AutopilotMsg.kt @@ -0,0 +1,11 @@ +package com.mogo.eagle.core.data.msgbox + +/** + * 工控机相关的消息 + */ +data class AutopilotMsg( + val type: Int, + val title: String?, + val content: String?, + val timestamp : Long +) \ No newline at end of file diff --git a/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/MsgBoxType.kt b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/MsgBoxType.kt index d96f98507c..15596db66c 100644 --- a/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/MsgBoxType.kt +++ b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/MsgBoxType.kt @@ -1,6 +1,6 @@ package com.mogo.eagle.core.data.msgbox enum class MsgBoxType { - // 按功能划分为几大类:运营、通知、V2X模块、OBU模块、工控机Report、录制、交通、FM、语音等 - OPERATION, NOTICE, V2X, OBU, REPORT, RECORD, TRAFFIC, FMINFO, VOICE + // 按功能划分为几大类:运营、通知、V2X模块、OBU模块、工控机Report、录制、交通、FM、语音、SSM、工控机相关等 + OPERATION, NOTICE, V2X, OBU, REPORT, RECORD, TRAFFIC, FMINFO, VOICE, SSMINFO, AUTOPILOT } \ No newline at end of file diff --git a/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/SSMMsg.kt b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/SSMMsg.kt new file mode 100644 index 0000000000..9d13c101f0 --- /dev/null +++ b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/msgbox/SSMMsg.kt @@ -0,0 +1,11 @@ +package com.mogo.eagle.core.data.msgbox + +/** + * SSM消息 + */ +data class SSMMsg( + val type: Int, + val title: String?, + val content: String?, + val timestamp : Long +) \ No newline at end of file