This commit is contained in:
zhongchao
2021-11-05 23:02:54 +08:00
parent 6c094debd8
commit 88170bb515
93 changed files with 1439 additions and 325 deletions

View File

@@ -45,11 +45,11 @@ interface IMoGoWaringProvider : IMoGoFunctionProvider {
* @param tag tag绑定弹窗的标志
*/
fun showWarningV2X(
v2xType: Int,
alertContent: String?,
ttsContent: String?,
tag: String?,
listenerIMoGo: IMoGoWarningStatusListener?
v2xType: Int,
alertContent: String?,
ttsContent: String?,
tag: String?,
listenerIMoGo: IMoGoWarningStatusListener?
)
/**
@@ -132,4 +132,9 @@ interface IMoGoWaringProvider : IMoGoFunctionProvider {
* @param normalData 推送消息体
*/
fun showNoticeNormalData(normalData: NoticeNormalData?)
/**
* 展示VIP标识
*/
fun vipIdentification(visible: Boolean)
}

View File

@@ -0,0 +1,13 @@
package com.mogo.eagle.core.function.api.trafficlight
import com.alibaba.android.arouter.facade.template.IProvider
import com.mogo.eagle.core.data.trafficlight.TrafficLightResult
interface IMoGoTrafficLightListener :IProvider{
/**
* 当前红绿灯状态,包含红绿灯灯态,倒计时秒数,灯态经纬度,时间戳,剩余时间
*/
fun onTrafficLightStatus(trafficLightResult: TrafficLightResult)
}

View File

@@ -0,0 +1,26 @@
package com.mogo.eagle.core.function.api.trafficlight
import android.content.Context
import com.mogo.eagle.core.data.trafficlight.TrafficLightDetail
import com.mogo.eagle.core.function.api.base.IMoGoFunctionServerProvider
interface ITrafficLightProvider : IMoGoFunctionServerProvider {
fun initTrafficLightServer(context: Context)
/**
* 获取当前红绿灯数据状态
*/
fun getTrafficLightCurrentState(): TrafficLightDetail?
/**
* 变灯
*/
fun turnLightToGreen(
lightId: Int,
crossingNo: String,
heading: Double,
onSuccess: (() -> Unit),
onError: ((String) -> Unit)
)
}