Provides methods for managing relationships between users.
Note: User has to be authenticated before executing methods from IRelationshipService.
public interface IRelationshipService
Send Friend Request
This method is sending a friend request to certain user with specified userId.
If you already have pending request from user that you are sending request, in that case, send friend request will make you friends. User will not recieve you request if you are blocked that user.
Accept Friend Request
Accept friend request from the users that sent you one.
Reject Friend Request
User can also reject request from the users.
Remove friendship with user.
Blocking some user will restrict that user from your appearance in their search results. Blocked users cannot send friend requests to users who blocked them,
Unblocking user will result in initial state between authenticated user and the blocked user.
Mute user for stop receiving notifications from that user. You will no longer receive notifications when user gets online or offline, or when relationship status change.
UnMute user to continue receiving notifications when your friend gets online, and when relationship status between you two is changed.
Get relationship status between authenticated and selected user.
Relationship GetRelationship(string userId);
CollectionResult<Relationship> GetRelationships(RelationshipsQuery query);
Get Friends Of User
CollectionResult<Relationship> GetFriendsOfUser(string userId, GetFriendsQuery query);
Get Mutual Friends
CollectionResult<Relationship> GetMutualFriends(string friendId, GetFriendsQuery query);