[dev_arch_opt_3.0] 添加obu 的versionName

This commit is contained in:
lixiaopeng
2023-03-01 11:41:57 +08:00
parent 5a8e5e3934
commit b1fe51d182
4 changed files with 75 additions and 17 deletions

View File

@@ -0,0 +1,33 @@
package com.mogo.eagle.core.function.call.obu
import com.mogo.eagle.core.function.api.obu.IMoGoObuInfoListener
import com.mogo.eagle.core.function.call.base.CallerBase
/**
* 一些obu的信息用于排查obu硬件问题
*
*/
object CallerObuInfoListenerManager : CallerBase<IMoGoObuInfoListener>() {
fun invokeObuVersionName(obuVersionName: String) {
M_LISTENERS.forEach {
val listener = it.value
listener.onGetObuVersionName(obuVersionName)
}
}
fun invokeObuDeviceId(obuDeviceId: String) {
M_LISTENERS.forEach {
val listener = it.value
listener.onObuDeviceId(obuDeviceId)
}
}
// fun invokeQueryContainersResponse(dockerList: List<String>) {
// M_LISTENERS.forEach {
// val listener = it.value
// //TODO
// }
// }
}