Skip to main content
Version: SDK-5.11.4

AcceptFriend

public BackendReturnObject AcceptFriend(string gamerIndate);

Parameter

ValueTypeDescription
gamerIndatestringindate of the gamer whose friend request is to be accepted

Description

Accepts a friend request.

Example

Synchronous

Backend.Friend.AcceptFriend("2020-02-11T01:08:12.603Z");

Asynchronous

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

SendQueue

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

Return cases

Success cases

When the request was accepted successfully
statusCode : 204
message : Success

Error cases

When the friend list of the person who sent the request is full
statusCode : 412
errorCode : PreconditionFailed
message : maxRequestedGamerFriend prerequisites are not met.

When the friend list of the person who received the request is full
statusCode : 412
errorCode : PreconditionFailed
message : maxGamerFriend prerequisites are not met.