| | |
| | | *用于设置广播的自定播放和停止 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<LedRecordsInfoResponse>> customBroadcast(CustomBroadcastRequest param){ |
| | | public static BaseResponse customBroadcast(CustomBroadcastRequest param){ |
| | | log.info("【海康用于设置广播的自定播放和停止】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.customBroadcast(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<BaseListPageResponse<LedRecordsInfoResponse>> >(){}; |
| | | BaseResponse<BaseListPageResponse<LedRecordsInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | new TypeReference< BaseResponse>(){}; |
| | | BaseResponse result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康用于设置广播的自定播放和停止"); |
| | | return result; |
| | | }catch (Exception e){ |