[6.7.0] finish the func of car
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.mogo.eagle.core.function.call.datacenter
|
||||
|
||||
import com.mogo.eagle.core.function.api.datacenter.IDataCenterBizListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
|
||||
object CallerDataCenterBizListener : CallerBase<IDataCenterBizListener>() {
|
||||
|
||||
private var res:Int = 0
|
||||
private var no:String? = null
|
||||
|
||||
override fun doSomeAfterAddListener(tag: String, listener: IDataCenterBizListener) {
|
||||
super.doSomeAfterAddListener(tag, listener)
|
||||
listener.invokeCarRes(res)
|
||||
listener.invokeCarNo(no)
|
||||
}
|
||||
|
||||
fun invokeCarRes(res: Int) {
|
||||
this.res = res
|
||||
M_LISTENERS.forEach {
|
||||
it.value.invokeCarRes(res)
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeCarNo(no: String?) {
|
||||
this.no = no
|
||||
M_LISTENERS.forEach {
|
||||
it.value.invokeCarNo(no)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.mogo.eagle.core.function.call.datacenter
|
||||
|
||||
import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.data.enums.Carmodel
|
||||
import com.mogo.eagle.core.function.api.datacenter.IDataCenterBizProvider
|
||||
import com.mogo.eagle.core.function.api.och.IOchFunctionCallNotify
|
||||
|
||||
object CallerDataCenterBizManager: IOchFunctionCallNotify {
|
||||
|
||||
private val dataCenterBizProviderApi
|
||||
get() = ARouter.getInstance().build(MogoServicePaths.PATH_DATA_CENTER_BIZ_FUNCTION)
|
||||
.navigation() as? IDataCenterBizProvider
|
||||
|
||||
override fun notifyCarMode(carModel: Carmodel) {
|
||||
dataCenterBizProviderApi?.notifyCarMode(carModel)
|
||||
}
|
||||
|
||||
override fun notifyPlateNumber(plateNumber: String?) {
|
||||
dataCenterBizProviderApi?.notifyPlateNumber(plateNumber)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import com.mogo.eagle.core.function.api.och.IEagleBaseFunctionCall4Och
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.IToolKitItemClickListener
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.ToolKitCustomItemAddParam
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.ToolKitDefaultItemAddParam
|
||||
import com.mogo.eagle.core.function.call.datacenter.CallerDataCenterBizManager
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
|
||||
/**
|
||||
@@ -89,13 +90,13 @@ object CallerEagleBaseFunctionCall4OchManager : IEagleBaseFunctionCall4Och {
|
||||
* Och设置车型 E70 H9 B1 B2 M1 金旅牌XML6606JEVY0(小巴车) NJL6450ICEV(小巴) BJ5122TXSEV-H1(环卫车)
|
||||
*/
|
||||
override fun setOchCarModel(carModel: Carmodel) {
|
||||
//this.carModel = carModel
|
||||
CallerDataCenterBizManager.notifyCarMode(carModel)
|
||||
}
|
||||
|
||||
/**
|
||||
* Och设置 车牌
|
||||
*/
|
||||
override fun setOchPlateNumber(plateNumber: String?) {
|
||||
// this.plateNumber = plateNumber
|
||||
CallerDataCenterBizManager.notifyPlateNumber(plateNumber)
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import java.util.concurrent.atomic.AtomicBoolean
|
||||
|
||||
/**
|
||||
* @author XuXinChao
|
||||
* @author XuXinChao //todo emArrow 合并dataCenter
|
||||
* @date 2023/4/20
|
||||
* 订单监听管理
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user