Merge branch 'dev_arch_opt_3.0' into 'dev_robobus-d_230217_1.0.1'
[2.13.0-arch-opt]v2x code style See merge request zhjt/AndroidApp/MoGoEagleEye!548
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.mogo.eagle.core.function.api.v2x
|
||||
package com.mogo.eagle.core.function.api.biz
|
||||
|
||||
import com.mogo.eagle.core.data.map.Infrastructure
|
||||
import com.mogo.eagle.core.data.v2x.V2XEvent
|
||||
import com.mogo.eagle.core.data.v2x.V2XEventData
|
||||
|
||||
interface IFuncBizProvider {
|
||||
/**
|
||||
@@ -12,5 +12,5 @@ interface IFuncBizProvider {
|
||||
/**
|
||||
* 根据lineId获取整条道路的V2X事件
|
||||
*/
|
||||
fun onV2XEvents(v2xEvents: List<V2XEvent>?) {}
|
||||
fun onV2XEvents(v2XEventData: List<V2XEventData>?) {}
|
||||
}
|
||||
@@ -1,6 +1,25 @@
|
||||
package com.mogo.eagle.core.function.api.cloud
|
||||
|
||||
interface IMoGoCloudListener {
|
||||
import com.mogo.eagle.core.data.v2x.V2XEvent
|
||||
|
||||
fun tokenGot(token: String, sn: String)
|
||||
interface IMoGoCloudListener{
|
||||
|
||||
fun tokenGot(token: String, sn: String){}
|
||||
|
||||
/**
|
||||
* 获取到V2X事件成功回调
|
||||
* @param event
|
||||
* - 参数说明:目前此参数支持以下类型
|
||||
* - [V2XEvent.ForwardsWarning]: 路口碰撞预警、盲区预警等预警事件, 数据实体取自[V2XEvent.ForwardsWarning.data]
|
||||
* - [V2XEvent.Road]: 道路事件, 数据实体取自[V2XEvent.Road.data]
|
||||
* - [V2XEvent.Warning]: 预警目标物事件, 数据实体取自[V2XEvent.Warning.data]
|
||||
* - [V2XEvent.Marker]: 道路标记事件, 数据实体取自[V2XEvent.Marker.data]
|
||||
*/
|
||||
fun onAck(event: V2XEvent){}
|
||||
|
||||
/**
|
||||
* V2X事件获取过程中,出现的异常信息,用于问题排查
|
||||
* @param msg 异常信息
|
||||
*/
|
||||
fun onFail(msg: String){}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mogo.eagle.core.function.api.msgbox
|
||||
package com.mogo.eagle.core.function.api.datacenter.msgbox
|
||||
|
||||
import com.mogo.eagle.core.data.msgbox.MsgBoxBean
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mogo.eagle.core.function.api.msgbox
|
||||
package com.mogo.eagle.core.function.api.datacenter.msgbox
|
||||
|
||||
import com.mogo.eagle.core.data.msgbox.MsgBoxBean
|
||||
import com.mogo.eagle.core.data.msgbox.MsgCategory
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mogo.eagle.core.function.api.msgbox
|
||||
package com.mogo.eagle.core.function.api.datacenter.msgbox
|
||||
|
||||
import android.content.Context
|
||||
import com.mogo.eagle.core.data.msgbox.MsgBoxBean
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mogo.eagle.core.function.api.v2x
|
||||
package com.mogo.eagle.core.function.api.datacenter.union
|
||||
|
||||
import com.mogo.eagle.core.data.enums.DataSourceType
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mogo.eagle.core.function.api.v2x
|
||||
package com.mogo.eagle.core.function.api.datacenter.union
|
||||
|
||||
import com.mogo.eagle.core.data.enums.DataSourceType
|
||||
import com.mogo.eagle.core.data.enums.TrafficLightEnum
|
||||
Reference in New Issue
Block a user