Skip to main content
Version: 5.11.8

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

Error cases

When the friend list of the person who sent the request is full
statusCode : 412
errorCode : PreconditionFailed

When the friend list of the person who received the request is full
statusCode : 412
errorCode : PreconditionFailed