FriendsRoute extension
- on
Methods
-
acceptFriendRequest(
String requestId) → Future< Either< ApiError, Friendship> > - Accept a friend request
-
cancelFriendRequest(
String requestId) → Future< Either< ApiError, Friendship> > - Cancel a friend request
-
getFriends(
String connectedUserId) → Future< Either< FriendshipsErrors, List< >Friendship> > - Get friends
-
getReceivedFriendRequests(
String connectedUserId) → Future< Either< FriendshipsErrors, List< >Friendship> > -
getSentFriendRequests(
String connectedUserId) → Future< Either< FriendshipsErrors, List< >Friendship> > -
rejectFriendRequest(
String requestId) → Future< Either< ApiError, Friendship> > - Reject a friend request
-
sendFriendRequest(
String receiverId) → Future< Either< ApiError, Friendship> > - Send a friend request
-
unfriend(
String friendId) → Future< Either< ApiError, Friendship> > - Unfriend