use of won.protocol.model.unread.UnreadMessageInfoForConnection in project webofneeds by researchstudio-sat.
the class UnreadInformationService method getUnreadInformation.
public UnreadMessageInfoForNeed getUnreadInformation(URI needURI, Collection<URI> lastSeenMessageURIs) {
List<UnreadMessageInfoForConnection> unreadInfoForConnections = messageEventRepository.getUnreadInfoForNeed(needURI, lastSeenMessageURIs);
UnreadMessageInfoForNeed result = new UnreadMessageInfoForNeed(needURI);
unreadInfoForConnections.forEach(info -> result.addUnreadMessageInfoForConnection(info));
return result;
}
Aggregations