wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/service/ICommonGbChannelService.java

48 lines
1.5 KiB
Java
Raw Normal View History

2023-08-21 17:54:15 +08:00
package com.genersoft.iot.vmp.service;
import com.genersoft.iot.vmp.common.CommonGbChannel;
import com.genersoft.iot.vmp.gb28181.bean.Device;
2023-08-30 15:05:52 +08:00
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
2023-08-21 17:54:15 +08:00
import java.util.ArrayList;
2023-08-25 15:49:56 +08:00
import java.util.List;
2023-08-21 17:54:15 +08:00
public interface ICommonGbChannelService {
CommonGbChannel getChannel(String channelId);
int add(CommonGbChannel channel);
2023-08-30 15:05:52 +08:00
int addFromGbChannel(DeviceChannel channel);
2023-08-21 17:54:15 +08:00
int delete(String channelId);
int update(CommonGbChannel channel);
boolean checkChannelInPlatform(String channelId, String platformServerId);
2023-08-24 16:15:58 +08:00
/**
*
*
2023-08-25 15:49:56 +08:00
* @param gbDeviceId
* @param syncKeys
2023-08-24 16:15:58 +08:00
*/
boolean syncChannelFromGb28181Device(String gbDeviceId, List<String> syncKeys, Boolean syncGroup, Boolean syncRegion);
CommonGbChannel getCommonChannelFromDeviceChannel(DeviceChannel deviceChannel, List<String> syncKeys);
2023-08-31 09:45:51 +08:00
List<CommonGbChannel> getChannelsInRegion(String civilCode);
List<CommonGbChannel> getChannelsInBusinessGroup(String businessGroupID);
void updateChannelFromGb28181DeviceInList(Device device, List<DeviceChannel> deviceChannels);
void addChannelFromGb28181DeviceInList(Device device, List<DeviceChannel> deviceChannels);
void deleteGbChannelsFromList(List<DeviceChannel> deleteChannelList);
void channelsOnlineFromList(List<DeviceChannel> deleteChannelList);
void channelsOfflineFromList(List<DeviceChannel> deleteChannelList);
2023-08-21 17:54:15 +08:00
}