Skip to main content
Version: 5.9.6

RejectFriend

public BackendReturnObject RejectFriend(string gamerIndate);

Parameter

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

Description

Declines a friend request.

Example

Synchronous

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

Asynchronous

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

SendQueue

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

Return cases

Success cases

When the request is declined successfully
statusCode : 204

Error cases

When the corresponding gamerIndate is not a friend
statusCode : 404
errorCode : NotFoundException