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

81 lines
2.9 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-11-08 18:30:41 +08:00
import com.genersoft.iot.vmp.gb28181.bean.Gb28181CodeType;
2023-11-10 16:03:47 +08:00
import com.genersoft.iot.vmp.service.bean.*;
2023-11-14 18:36:40 +08:00
import com.genersoft.iot.vmp.vmanager.bean.UpdateCommonChannelToGroup;
2023-11-16 14:24:50 +08:00
import com.genersoft.iot.vmp.vmanager.bean.UpdateCommonChannelToRegion;
2023-11-01 09:25:49 +08:00
import com.github.pagehelper.PageInfo;
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
2023-11-01 09:25:49 +08:00
PageInfo<CommonGbChannel> getChannelsInRegion(String regionDeviceId, String query, int page, int count);
2023-08-31 09:45:51 +08:00
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-11-01 09:25:49 +08:00
2023-11-14 18:36:40 +08:00
PageInfo<CommonGbChannel> queryChannelListInGroup(int page, int count, String query, String groupDeviceId,
String regionDeviceId, Boolean inGroup, Boolean inRegion,
String type);
2023-11-01 09:25:49 +08:00
PageInfo<CommonGbChannel> queryChannelList(String query, int page, int count);
2023-11-08 18:30:41 +08:00
2023-11-10 16:03:47 +08:00
List<IndustryCodeType> getIndustryCodeList();
List<DeviceType> getDeviceTypeList();
List<NetworkIdentificationType> getNetworkIdentificationTypeList();
2023-11-14 18:36:40 +08:00
void updateChannelToGroup(UpdateCommonChannelToGroup commonGbChannel);
void removeFromGroup(UpdateCommonChannelToGroup params);
2023-11-16 14:24:50 +08:00
void removeFromRegion(UpdateCommonChannelToRegion params);
void updateChannelToRegion(UpdateCommonChannelToRegion params);
void startPlay(CommonGbChannel channel, IResourcePlayCallback callback);
void stopPlay(CommonGbChannel channel, IResourcePlayCallback callback);
2023-08-21 17:54:15 +08:00
}