@Override public NotificationSyncRequest createNotificationRequest() { if (clientState != null) { NotificationSyncRequest request = new NotificationSyncRequest(); if (!acceptedUnicastNotificationIds.isEmpty()) { LOG.info("Accepted unicast Notifications: {}", acceptedUnicastNotificationIds.size()); request.setAcceptedUnicastNotifications(new ArrayList<>(acceptedUnicastNotificationIds)); } request.setSubscriptionCommands(sentNotificationCommands); request.setTopicListHash(clientState.getTopicListHash()); request.setTopicStates(getTopicStates()); return request; } return null; }
@Override public NotificationSyncRequest createEmptyNotificationRequest() { if (clientState != null) { NotificationSyncRequest request = new NotificationSyncRequest(); request.setTopicListHash(clientState.getTopicListHash()); request.setTopicStates(getTopicStates()); return request; } return null; }