LeanCloud C# SDK
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
LeanCloud.Storage.LCFriendship Class Reference

LCFriendship contains static functions that handle LCFriendship. More...

Static Public Member Functions

static async Task Request (string userId, Dictionary< string, object > attributes=null)
 Requests to add a friend.
 
static async Task AcceptRequest (LCFriendshipRequest request, Dictionary< string, object > attributes=null)
 Accepts a friend request.
 
static async Task DeclineRequest (LCFriendshipRequest request)
 Declines a friend request.
 
static async Task BlockFriend (string userId)
 Blocks the user.
 
static async Task UnblockFriend (string userId)
 Unblocks the user.
 

Detailed Description

LCFriendship contains static functions that handle LCFriendship.

Member Function Documentation

◆ AcceptRequest()

static async Task LeanCloud.Storage.LCFriendship.AcceptRequest ( LCFriendshipRequest  request,
Dictionary< string, object >  attributes = null 
)
inlinestatic

Accepts a friend request.

Parameters
requestThe request.
attributesThe additional attributes for the friendship.
Returns

◆ BlockFriend()

static async Task LeanCloud.Storage.LCFriendship.BlockFriend ( string  userId)
inlinestatic

Blocks the user.

Parameters
userId
Returns

◆ DeclineRequest()

static async Task LeanCloud.Storage.LCFriendship.DeclineRequest ( LCFriendshipRequest  request)
inlinestatic

Declines a friend request.

Parameters
requestThe request.
Returns

◆ Request()

static async Task LeanCloud.Storage.LCFriendship.Request ( string  userId,
Dictionary< string, object >  attributes = null 
)
inlinestatic

Requests to add a friend.

Parameters
userIdThe user id to add.
attributesThe additional attributes for the friendship.
Returns

◆ UnblockFriend()

static async Task LeanCloud.Storage.LCFriendship.UnblockFriend ( string  userId)
inlinestatic

Unblocks the user.

Parameters
userId
Returns

The documentation for this class was generated from the following file: