[2.13.0-arhc-opt] move monitoring to biz
This commit is contained in:
@@ -13,5 +13,4 @@ object CallerFuncBizManager : CallerBase<Any>() {
|
||||
val bizProvider: IMoGoFuncBizProvider
|
||||
get() = getApiInstance(IMoGoFuncBizProvider::class.java, MogoServicePaths.PATH_FUNC_BIZ)
|
||||
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package com.mogo.eagle.core.function.call.monitor
|
||||
|
||||
import com.mogo.eagle.core.data.camera.CameraEntity
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.function.api.monitoring.IMoGoMonitoringProvider
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
|
||||
object CallerMonitorManager {
|
||||
private val providerApi: IMoGoMonitoringProvider
|
||||
get() = CallerBase.getApiInstance(
|
||||
IMoGoMonitoringProvider::class.java,
|
||||
MogoServicePaths.PATH_AI_MONITORING)
|
||||
|
||||
fun getCameraList(): List<CameraEntity>? {
|
||||
return providerApi.cameraList
|
||||
}
|
||||
|
||||
fun openCameraStream(cameraIp: String) {
|
||||
providerApi.openCameraStream(cameraIp)
|
||||
}
|
||||
|
||||
fun openCameraStream(cameraIp: String, success: (String) -> Unit, error: (Throwable) -> Unit) {
|
||||
providerApi.openCameraStream(cameraIp, success, error)
|
||||
}
|
||||
|
||||
fun disposeCameraStream() {
|
||||
providerApi.disposeCameraStream()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user