2022-03-10 18:39:57 +00:00
|
|
|
|
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({
|
2022-03-10 18:39:57 +00:00
|
|
|
required this.userID,
|
|
|
|
required this.areFriend,
|
|
|
|
required this.sentRequest,
|
|
|
|
required this.receivedRequest,
|
|
|
|
required this.following,
|
2019-06-15 14:01:58 +00:00
|
|
|
}) : assert(userID != null),
|
|
|
|
assert(areFriend != null),
|
|
|
|
assert(sentRequest != null),
|
|
|
|
assert(receivedRequest != null),
|
|
|
|
assert(following != null);
|
|
|
|
|
|
|
|
bool get noRequestExchanged => !areFriend && !sentRequest && !receivedRequest;
|
|
|
|
}
|