[2.13.0-arhc-opt] move monitoring to biz
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
package com.mogo.eagle.core.function.api.biz
|
||||
|
||||
import com.mogo.eagle.core.data.camera.CameraEntity
|
||||
import com.mogo.eagle.core.function.api.base.IMoGoFunctionServerProvider
|
||||
|
||||
/**
|
||||
* @author Jing
|
||||
* @description
|
||||
* @since: 10/27/21
|
||||
*/
|
||||
interface IMoGoFuncBizProvider : IMoGoFunctionServerProvider {
|
||||
|
||||
/*----------------------------------------Notice----------------------------------------*/
|
||||
/**
|
||||
* 是否接受交通事故任务
|
||||
* @param infoId
|
||||
@@ -24,6 +22,7 @@ interface IMoGoFuncBizProvider : IMoGoFunctionServerProvider {
|
||||
*/
|
||||
fun requestAccidentInfo(infoId: String, sn: String, callBack: IMoGoNoticeNetCallBack)
|
||||
|
||||
/*----------------------------------------Dispatch----------------------------------------*/
|
||||
/**
|
||||
* 调度确认
|
||||
*/
|
||||
@@ -39,4 +38,17 @@ interface IMoGoFuncBizProvider : IMoGoFunctionServerProvider {
|
||||
* 调度测试
|
||||
*/
|
||||
fun testDispatch(sceneType: Int)
|
||||
|
||||
/*----------------------------------------Monitoring----------------------------------------*/
|
||||
|
||||
val getCameraList: List<CameraEntity>
|
||||
|
||||
fun openCameraStream(cameraIp: String)
|
||||
|
||||
fun openCameraStream(cameraIp: String, success: (String) -> Unit, error: (Throwable) -> Unit)
|
||||
/**
|
||||
* 防止回调摄像头列表View的相关调用
|
||||
*/
|
||||
fun closeCameraLive()
|
||||
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package com.mogo.eagle.core.function.api.monitoring
|
||||
|
||||
import com.mogo.eagle.core.function.api.base.IMoGoFunctionServerProvider
|
||||
import com.mogo.eagle.core.data.camera.CameraEntity
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/10/29 10:35 上午
|
||||
* 超视距功能,路测摄像头,前车摄像头监控
|
||||
*/
|
||||
interface IMoGoMonitoringProvider : IMoGoFunctionServerProvider {
|
||||
val cameraList: List<CameraEntity>?
|
||||
fun openCameraStream(cameraIp: String)
|
||||
fun openCameraStream(cameraIp: String, success: (String) -> Unit, error: (Throwable) -> Unit)
|
||||
/**
|
||||
* 防止回调摄像头列表View的相关调用
|
||||
*/
|
||||
fun disposeCameraStream()
|
||||
}
|
||||
Reference in New Issue
Block a user