[2.13.0-arhc-opt] move monitoring to biz

This commit is contained in:
zhongchao
2023-01-04 21:03:30 +08:00
parent 2b679720bc
commit 19d02aa429
55 changed files with 77 additions and 1032 deletions

View File

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

View File

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