From a42dda2bd3cc1cf8c20cc61e7ad9211eadecbaf3 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 24 二月 2022 16:55:06 +0800 Subject: [PATCH] 规范数据库,添加必要约束,优化通道批量导入功能 --- src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java | 62 ++++++++++++++++++++++++++++++- 1 files changed, 60 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java index beeab22..7325889 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java @@ -1,9 +1,13 @@ package com.genersoft.iot.vmp.gb28181.transmit.cmd; +import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform; +import com.genersoft.iot.vmp.gb28181.bean.SubscribeInfo; import com.genersoft.iot.vmp.gb28181.event.SipSubscribe; +import com.genersoft.iot.vmp.service.bean.GPSMsgInfo; import javax.sip.header.WWWAuthenticateHeader; +import java.util.List; public interface ISIPCommanderForPlatform { @@ -12,7 +16,8 @@ * @param parentPlatform * @return */ - boolean register(ParentPlatform parentPlatform); + boolean register(ParentPlatform parentPlatform, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent); + boolean register(ParentPlatform parentPlatform, String callId, WWWAuthenticateHeader www, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent); /** * 鍚戜笂绾у钩鍙版敞閿� @@ -21,7 +26,6 @@ */ boolean unregister(ParentPlatform parentPlatform, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent); - boolean register(ParentPlatform parentPlatform, String callId, WWWAuthenticateHeader www, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent); /** * 鍚戜笂绾у钩鍙戦�佸績璺充俊鎭� @@ -29,4 +33,58 @@ * @return callId(浣滀负鎺ュ彈鍥炲鐨勫垽瀹�) */ String keepalive(ParentPlatform parentPlatform); + + + /** + * 鍚戜笂绾у洖澶嶉�氶亾淇℃伅 + * @param channel 閫氶亾淇℃伅 + * @param parentPlatform 骞冲彴淇℃伅 + * @param sn + * @param fromTag + * @param size + * @return + */ + boolean catalogQuery(DeviceChannel channel, ParentPlatform parentPlatform, String sn, String fromTag, int size); + + /** + * 鍚戜笂绾у洖澶岲eviceInfo鏌ヨ淇℃伅 + * @param parentPlatform 骞冲彴淇℃伅 + * @param sn + * @param fromTag + * @return + */ + boolean deviceInfoResponse(ParentPlatform parentPlatform, String sn, String fromTag); + + /** + * 鍚戜笂绾у洖澶岲eviceStatus鏌ヨ淇℃伅 + * @param parentPlatform 骞冲彴淇℃伅 + * @param sn + * @param fromTag + * @return + */ + boolean deviceStatusResponse(ParentPlatform parentPlatform, String sn, String fromTag); + + /** + * 鍚戜笂绾у洖澶嶇Щ鍔ㄤ綅缃闃呮秷鎭� + * @param parentPlatform 骞冲彴淇℃伅 + * @param gpsMsgInfo GPS淇℃伅 + * @param subscribeInfo 璁㈤槄鐩稿叧鐨勪俊鎭� + * @return + */ + boolean sendNotifyMobilePosition(ParentPlatform parentPlatform, GPSMsgInfo gpsMsgInfo, SubscribeInfo subscribeInfo); + + /** + * 鍥炲catalog浜嬩欢-澧炲姞/鏇存柊 + * @param parentPlatform + * @param deviceChannels + */ + boolean sendNotifyForCatalogAddOrUpdate(String type, ParentPlatform parentPlatform, List<DeviceChannel> deviceChannels, SubscribeInfo subscribeInfo); + + /** + * 鍥炲catalog浜嬩欢-鍒犻櫎 + * @param parentPlatform + * @param deviceChannels + */ + boolean sendNotifyForCatalogOther(String type, ParentPlatform parentPlatform, List<DeviceChannel> deviceChannels, SubscribeInfo subscribeInfo); + } -- Gitblit v1.8.0