Skip to main content
Version: 6.0.0

SendFriendRequest

public BackndReturnObject SendFriendRequest(string gamerIndate);

Parameter

ValueTypeDescription
gamerIndatestringindate of the gamer to whom a friend request is to be sent

Description

Sends a friend request to the user with the corresponding gamerIndate.

Example

Synchronous

Backnd.Friend.SendFriendRequest("2020-02-11T01:08:12.603Z");

Asynchronous

Backnd.Friend.SendFriendRequest("2020-02-11T01:08:12.603Z", (callback) => 
{
// Post-process
});

Return cases

Success cases

When the friend request is successful
statusCode : 204

Error cases

When the maximum number of friends setting value is 0 in the social management menu of BACKND Console
statusCode : 403
errorCode : ForbiddenException

When another friend request is made to someone after already sending a friend request
statusCode : 409
errorCode : DuplicatedParameterException

When the recipient's requests are full
statusCode : 412
errorCode : PreconditionFailed

When the sender's requests are full
statusCode : 412
errorCode : PreconditionFailed