IGbStreamService.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.genersoft.iot.vmp.service;
  2. import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
  3. import com.genersoft.iot.vmp.gb28181.bean.GbStream;
  4. import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
  5. import com.genersoft.iot.vmp.media.zlm.dto.StreamPushItem;
  6. import com.github.pagehelper.PageInfo;
  7. import java.util.List;
  8. /**
  9. * 级联国标平台关联流业务接口
  10. */
  11. public interface IGbStreamService {
  12. /**
  13. * 分页获取所有
  14. * @param page
  15. * @param count
  16. * @return
  17. */
  18. PageInfo<GbStream> getAll(Integer page, Integer count, String platFormId, String catalogId,String query,String mediaServerId);
  19. /**
  20. * 移除
  21. * @param app
  22. * @param stream
  23. */
  24. void del(String app, String stream);
  25. /**
  26. * 保存国标关联
  27. * @param gbStreams
  28. */
  29. boolean addPlatformInfo(List<GbStream> gbStreams, String platformId, String catalogId);
  30. /**
  31. * 移除国标关联
  32. * @param gbStreams
  33. * @param platformId
  34. */
  35. boolean delPlatformInfo(String platformId, List<GbStream> gbStreams);
  36. DeviceChannel getDeviceChannelListByStream(GbStream gbStream, String catalogId, ParentPlatform platform);
  37. void sendCatalogMsg(GbStream gbStream, String type);
  38. void sendCatalogMsgs(List<GbStream> gbStreams, String type);
  39. /**
  40. * 修改gbId或name
  41. * @param streamPushItemForUpdate
  42. * @return
  43. */
  44. int updateGbIdOrName(List<StreamPushItem> streamPushItemForUpdate);
  45. DeviceChannel getDeviceChannelListByStreamWithStatus(GbStream gbStream, String catalogId, ParentPlatform platform);
  46. /**
  47. * 查询所有未分配的通道
  48. * @param platformId
  49. * @return
  50. */
  51. List<GbStream> getAllGBChannels(String platformId);
  52. /**
  53. * 移除所有关联的通道
  54. * @param platformId
  55. * @param catalogId
  56. */
  57. void delAllPlatformInfo(String platformId, String catalogId);
  58. }