MyPureCloud / quick-hits-java - replacing deprecated GetRoutingQueueUsersRequest

Hi,

When trying the routing-queue-membership-notification.java, I saw that there is a call to a deprecated method. (source is at GitHub - MyPureCloud/quick-hits-java)

Can somebody update the following lines:
from line 61:
GetRoutingQueueUsersRequest getRoutingQueueUsersRequest = GetRoutingQueueUsersRequest.builder()
.withQueueId(queue.getId())
.build();
ArrayList members = new ArrayList<>();
try {
QueueMemberEntityListing routingQueueUsers = routingApi.getRoutingQueueUsers(getRoutingQueueUsersRequest);

by:
GetRoutingQueueMembersRequest getRoutingQueueMembersRequest = GetRoutingQueueMembersRequest.builder()
.withQueueId(queue.getId())
.build();
ArrayList members = new ArrayList<>();
try {
QueueMemberEntityListing routingQueueUsers = routingApi.getRoutingQueueMembers(getRoutingQueueMembersRequest);

Thanks in advance,

Erik

Would you mind submitting a PR for this change? The repo is open source; contributions are welcome.

Sure, I didn't know that we were able to send contributions.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.