[6.7.0][Feat]新增起终点数据通知的接口

This commit is contained in:
chenfufeng
2024-10-16 18:58:20 +08:00
parent ce1b5b3b6e
commit b0dc7fc818
3 changed files with 17 additions and 0 deletions

View File

@@ -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>)

View File

@@ -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) {}
}

View File

@@ -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
}