[6.7.0][Feat]新增起终点数据通知的接口
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package com.mogo.eagle.core.data.och
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
|
||||
data class OchInfo(var type: Int, var latLonList: List<MogoLocation>)
|
||||
@@ -1,5 +1,8 @@
|
||||
package com.mogo.eagle.core.function.api.datacenter
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.eagle.core.data.och.OchInfo
|
||||
|
||||
interface IDataCenterBizListener {
|
||||
|
||||
fun invokeLoginNo(loginNo:String?){}
|
||||
@@ -24,4 +27,5 @@ interface IDataCenterBizListener {
|
||||
|
||||
fun invokeAutopilotOrderId(orderID:String){}
|
||||
|
||||
fun invokeOchInfo(ochInfo: OchInfo) {}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.mogo.eagle.core.function.call.datacenter
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.eagle.core.data.och.OchInfo
|
||||
import com.mogo.eagle.core.function.api.datacenter.IDataCenterBizListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import java.util.concurrent.atomic.AtomicBoolean
|
||||
@@ -96,6 +98,12 @@ object CallerDataCenterBizListener : CallerBase<IDataCenterBizListener>() {
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeOchInfo(ochInfo: OchInfo) {
|
||||
M_LISTENERS.forEach {
|
||||
it.value.invokeOchInfo(ochInfo)
|
||||
}
|
||||
}
|
||||
|
||||
fun getOrderId(): String {
|
||||
return orderId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user