mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-10-31 18:24:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			469 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			469 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| /// 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,
 | |
|   });
 | |
| 
 | |
|   bool get noRequestExchanged => !areFriend && !sentRequest && !receivedRequest;
 | |
| }
 |