import 'package:comunic/lists/abstract_list.dart'; import 'package:comunic/models/unread_conversation.dart'; /// List of unread conversations /// /// @author Pierre Hubert class UnreadConversationsList extends AbstractList { /// Get the ID of the users included in this list Set get usersID { final set = Set(); forEach((element) { set.addAll(element.conv.membersID); set.addAll(element.message.usersID); }); return set; } /// Get the ID of the groups references ind this list Set get groupsID { final set = Set(); forEach((element) { if (element.conv.isGroupConversation) set.add(element.conv.groupID); }); return set; } }