| | |
| | | *分页获取广播点(分页) |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<FetchAudioChannelInfoResponse>> fetchAudioDevice(FetchAudioChannelRequest param){ |
| | | log.info("【海康获取分页获取广播点】================开始===="+JSONObject.toJSONString(param)); |
| | | public static BaseResponse<BaseListPageResponse<FetchAudioDeviceInfoResponse>> fetchAudioDevice(FetchAudioDeviceRequest param){ |
| | | log.info("【海康获取分页获取广播设备】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.fetchAudioDevice(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<BaseListPageResponse<FetchAudioChannelInfoResponse>> >(){}; |
| | | BaseResponse<BaseListPageResponse<FetchAudioChannelInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康获取分页获取广播点"); |
| | | new TypeReference< BaseResponse<BaseListPageResponse<FetchAudioDeviceInfoResponse>> >(){}; |
| | | BaseResponse<BaseListPageResponse<FetchAudioDeviceInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康获取分页获取广播设备"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康获取分页获取广播点】================失败====:\n"+ e.getMessage()); |
| | | log.error("【海康获取分页获取广播设备】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |