[6.5.1_exam]Taxi增加座椅压力
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user