1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00
comunicmobile/lib/models/friend_status.dart

22 lines
469 B
Dart
Raw Permalink Normal View History

2019-06-15 14:01:58 +00:00
/// Simple friendship status
///
/// @author Pierre HUBERT
class FriendStatus {
final int userID;
final bool areFriend;
final bool sentRequest;
final bool receivedRequest;
final bool following;
const FriendStatus({
required this.userID,
required this.areFriend,
required this.sentRequest,
required this.receivedRequest,
required this.following,
2022-03-11 16:13:54 +00:00
});
2019-06-15 14:01:58 +00:00
bool get noRequestExchanged => !areFriend && !sentRequest && !receivedRequest;
}