[6.5.1_exam]Taxi增加座椅压力

This commit is contained in:
xuxinchao
2024-07-31 17:07:51 +08:00
parent cca38246cc
commit 57edc8dffb
9 changed files with 176 additions and 7 deletions

View File

@@ -1,18 +1,19 @@
package com.mogo.eagle.core.function.call.setting
import com.mogo.eagle.core.function.api.setting.ITakeOverEventListener
import com.mogo.eagle.core.function.api.setting.ISeatPressureEventListener
import com.mogo.eagle.core.function.call.base.CallerBase
import java.util.concurrent.ConcurrentHashMap
/**
* 接管请求事件监听管理
* 座椅压力事件监听管理
*/
object CallerTakeOverManager: CallerBase<ITakeOverEventListener>() {
object CallerSeatPressureManager: CallerBase<ISeatPressureEventListener>() {
fun invokeTakeOverEvent(isShow: Boolean){
fun invokeUpdateBgEvent(isPress: Boolean){
M_LISTENERS.forEach {
val tag = it.key
val listener = it.value
listener.onTakeOverEvent(isShow)
listener.onUpdateBgEvent(isPress)
}
}

View File

@@ -0,0 +1,19 @@
package com.mogo.eagle.core.function.call.setting
import com.mogo.eagle.core.function.api.setting.ITakeOverEventListener
import com.mogo.eagle.core.function.call.base.CallerBase
/**
* 接管请求事件监听管理
*/
object CallerTakeOverManager: CallerBase<ITakeOverEventListener>() {
fun invokeTakeOverEvent(isShow: Boolean){
M_LISTENERS.forEach {
val tag = it.key
val listener = it.value
listener.onTakeOverEvent(isShow)
}
}
}