Added an optional parameter onlyPreferredCall in the getAllCalls API to filter the response and include only preferred calls

This commit is contained in:
rajesh
2024-11-20 18:43:33 +05:30
parent b8d9ab9c46
commit 49a122aba7
9 changed files with 31 additions and 9 deletions

View File

@@ -62,9 +62,9 @@ public class CallServiceImpl implements CallService {
@Override
@Transactional(readOnly = true)
public List<CallDetailsResponseBean> getAllCalls(HttpServletRequest request,Long companyId) {
public List<CallDetailsResponseBean> getAllCalls(HttpServletRequest request,Long companyId,Boolean onlyPreferredCall) {
UserEntity user = validator.validateUser(request);
return callDao.getAllCalls(request,user,companyId);
return callDao.getAllCalls(request,user,companyId,onlyPreferredCall);
}