| package com.genersoft.iot.vmp.service; | 
|   | 
| import com.genersoft.iot.vmp.gb28181.bean.Device; | 
| import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; | 
| import com.genersoft.iot.vmp.vmanager.bean.ResourceBaceInfo; | 
| import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * 国标通道业务类 | 
|  * @author lin | 
|  */ | 
| public interface IDeviceChannelService { | 
|   | 
|     /** | 
|      * 更新gps信息 | 
|      */ | 
|     DeviceChannel updateGps(DeviceChannel deviceChannel, Device device); | 
|   | 
|     /** | 
|      * 添加设备通道 | 
|      * | 
|      * @param deviceId 设备id | 
|      * @param channel 通道 | 
|      */ | 
|     void updateChannel(String deviceId, DeviceChannel channel); | 
|   | 
|     /** | 
|      * 批量添加设备通道 | 
|      * | 
|      * @param deviceId 设备id | 
|      * @param channels 多个通道 | 
|      */ | 
|     int updateChannels(String deviceId, List<DeviceChannel> channels); | 
|   | 
|     /** | 
|      * 获取统计信息 | 
|      * @return | 
|      */ | 
|     ResourceBaceInfo getOverview(); | 
|   | 
|     /** | 
|      * 查询所有未分配的通道 | 
|      * @param platformId | 
|      * @return | 
|      */ | 
|     List<ChannelReduce> queryAllChannelList(String platformId); | 
| } |