Search in sources :

Example 1 with UnreadMessageInfoForConnection

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;
}
Also used : UnreadMessageInfoForConnection(won.protocol.model.unread.UnreadMessageInfoForConnection) UnreadMessageInfoForNeed(won.protocol.model.unread.UnreadMessageInfoForNeed)

Aggregations

UnreadMessageInfoForConnection (won.protocol.model.unread.UnreadMessageInfoForConnection)1 UnreadMessageInfoForNeed (won.protocol.model.unread.UnreadMessageInfoForNeed)1