| | |
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import com.alibaba.fastjson.JSONObject;
|
| | | import com.genersoft.iot.vmp.common.PageResult;
|
| | | import com.genersoft.iot.vmp.common.StreamInfo;
|
| | | import com.genersoft.iot.vmp.conf.MediaServerConfig;
|
| | | import com.genersoft.iot.vmp.gb28181.bean.Device;
|
| | | import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
|
| | | import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
|
| | | import com.github.pagehelper.PageInfo;
|
| | |
|
| | | /**
|
| | | * @Description:视频设备数据存储接口
|
| | |
| | | * @param count 每页数量
|
| | | * @return
|
| | | */
|
| | | public PageResult queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, String online, int page, int count);
|
| | | public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count);
|
| | |
|
| | | /**
|
| | | * 获取某个设备的通道列表
|
| | |
| | | */
|
| | | public DeviceChannel queryChannel(String deviceId, String channelId);
|
| | |
|
| | | /** |
| | | /**
|
| | | * 获取多个设备
|
| | | * |
| | | * @param deviceIds 设备ID数组
|
| | | * @param page 当前页数
|
| | | * @param count 每页数量
|
| | | * @return List<Device> 设备对象数组
|
| | | */
|
| | | public PageResult<Device> queryVideoDeviceList(String[] deviceIds, int page, int count);
|
| | | public PageInfo<Device> queryVideoDeviceList(int page, int count);
|
| | |
|
| | | /**
|
| | | * 获取多个设备
|
| | |
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | PageResult querySubChannels(String deviceId, String channelId, String query, Boolean hasSubChannel, String online, int page, int count);
|
| | | PageInfo querySubChannels(String deviceId, String channelId, String query, Boolean hasSubChannel, String online, int page, int count);
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | */
|
| | | void cleanChannelsForDevice(String deviceId);
|
| | |
|
| | |
|
| | | /**
|
| | | * 更新上级平台
|
| | | * @param parentPlatform
|
| | | */
|
| | | boolean updateParentPlatform(ParentPlatform parentPlatform);
|
| | |
|
| | |
|
| | | /**
|
| | | * 添加上级平台
|
| | | * @param parentPlatform
|
| | | */
|
| | | boolean addParentPlatform(ParentPlatform parentPlatform);
|
| | |
|
| | | /**
|
| | | * 删除上级平台
|
| | | * @param parentPlatform
|
| | | */
|
| | | boolean deleteParentPlatform(ParentPlatform parentPlatform);
|
| | |
|
| | |
|
| | | /**
|
| | | * 分页获取上级平台
|
| | | * @param page
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | PageInfo<ParentPlatform> queryParentPlatformList(int page, int count);
|
| | |
|
| | | /**
|
| | | * 获取所有已启用的平台
|
| | | * @return
|
| | | */
|
| | | List<ParentPlatform> queryEnableParentPlatformList(boolean enable);
|
| | |
|
| | | /**
|
| | | * 获取上级平台
|
| | | * @param platformGbId
|
| | | * @return
|
| | | */
|
| | | ParentPlatform queryParentPlatById(String platformGbId);
|
| | |
|
| | | /**
|
| | | * 所有平台离线
|
| | | */
|
| | | void outlineForAllParentPlatform();
|
| | | }
|