package com.genersoft.iot.vmp.service; import com.genersoft.iot.vmp.common.CommonGbChannel; import com.genersoft.iot.vmp.gb28181.bean.Device; import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; import com.github.pagehelper.PageInfo; import java.util.ArrayList; import java.util.List; public interface ICommonGbChannelService { CommonGbChannel getChannel(String channelId); int add(CommonGbChannel channel); int addFromGbChannel(DeviceChannel channel); int delete(String channelId); int update(CommonGbChannel channel); boolean checkChannelInPlatform(String channelId, String platformServerId); /** * 从国标设备中同步通道 * * @param gbDeviceId 国标设备编号 * @param syncKeys 要同步的字段 */ boolean syncChannelFromGb28181Device(String gbDeviceId, List syncKeys, Boolean syncGroup, Boolean syncRegion); CommonGbChannel getCommonChannelFromDeviceChannel(DeviceChannel deviceChannel, List syncKeys); PageInfo getChannelsInRegion(String regionDeviceId, String query, int page, int count); List getChannelsInBusinessGroup(String businessGroupID); void updateChannelFromGb28181DeviceInList(Device device, List deviceChannels); void addChannelFromGb28181DeviceInList(Device device, List deviceChannels); void deleteGbChannelsFromList(List deleteChannelList); void channelsOnlineFromList(List deleteChannelList); void channelsOfflineFromList(List deleteChannelList); PageInfo queryChannelListInGroup(String groupDeviceId, String query, int page, int count); PageInfo queryChannelList(String query, int page, int count); }