1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

id => userID (improve clarity)

This commit is contained in:
2020-04-20 15:02:49 +02:00
parent 99ecc399ee
commit c0856c5126
4 changed files with 9 additions and 9 deletions

View File

@ -7,11 +7,11 @@ import 'package:comunic/models/call_member.dart';
class CallMembersList extends AbstractList<CallMember> {
/// Get the IDs of the users in this list
Set<int> get usersID => this.map((f) => f.id).toSet();
Set<int> get usersID => this.map((f) => f.userID).toSet();
/// Remove a specific member from this list
void removeUser(int userID) => this.removeWhere((f) => f.id == userID);
void removeUser(int userID) => this.removeWhere((f) => f.userID == userID);
/// Get the connection of a specific user
CallMember getUser(int userID) => this.firstWhere((f) => f.id == userID);
CallMember getUser(int userID) => this.firstWhere((f) => f.userID == userID);
}