优化代码结构,提供NVR录像检索接口
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.genersoft.iot.vmp.gb28181.auth;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
||||
import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommander;
|
||||
|
||||
/**
|
||||
* @Description:注册逻辑处理,当设备注册后触发逻辑。
|
||||
* @author: songww
|
||||
* @date: 2020年5月8日 下午9:41:46
|
||||
*/
|
||||
@Component
|
||||
public class RegisterLogicHandler {
|
||||
|
||||
@Autowired
|
||||
private SIPCommander cmder;
|
||||
|
||||
public void onRegister(Device device) {
|
||||
// TODO 后续处理,只有第一次注册时调用查询设备信息,如需更新调用更新API接口
|
||||
cmder.deviceInfoQuery(device);
|
||||
|
||||
cmder.catalogQuery(device);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user