Added a method for getting unread message counts for all groups.

This commit is contained in:
akwizgran
2011-10-26 17:56:35 +01:00
parent 6d91603bf7
commit 7d73f9604d
5 changed files with 121 additions and 0 deletions

View File

@@ -144,6 +144,9 @@ public interface DatabaseComponent {
/** Returns the set of groups to which the user subscribes. */
Collection<Group> getSubscriptions() throws DbException;
/** Returns the number of unread messages in each subscribed group. */
Map<GroupId, Integer> getUnreadMessageCounts() throws DbException;
/** Returns the contacts to which the given group is visible. */
Collection<ContactId> getVisibility(GroupId g) throws DbException;