跳到主要内容

Server Friend API Reference

The Friends service allows developers to manage the player's friend list. The player can invite friends to join a party for matchmaking or to chat.

API List

APIDescription
BatchSetPlayerFriendsLimitBatch set the maximum limit of friends players can have. (max 100 players, max 500 friends per player)
BatchGetPlayerFriendsLimitBatch query the maximum limit of friends players can have. (max 100 players)

API Details

BatchSetPlayerFriendsLimit

Batch set the maximum limit of friends players can have. (max 100 players, max 500 friends per player)

/// <summary>Batch set the maximum limit of friends players can have.  (max 100 players, max 500 friends per player)</summary>
/// <param name="pgos_params">Request struct for set friend remark.</param>
public void BatchSetPlayerFriendsLimit(BatchSetPlayerFriendsLimitParams pgos_params, FriendDelegate0 callback);

Parameters:

ParamTypeDescription
pgos_paramsBatchSetPlayerFriendsLimitParamsRequest struct for set friend remark.
callbackFriendDelegate0

Return: void

BatchGetPlayerFriendsLimit

Batch query the maximum limit of friends players can have. (max 100 players)

/// <summary>Batch query the maximum limit of friends players can have. (max 100 players)</summary>
/// <param name="pgos_params">Request struct for set friend remark.</param>
public void BatchGetPlayerFriendsLimit(BatchGetPlayerFriendsLimitParams pgos_params, FriendDelegate1 callback);

Parameters:

ParamTypeDescription
pgos_paramsBatchGetPlayerFriendsLimitParamsRequest struct for set friend remark.
callbackFriendDelegate1

Return: void

All Delegates

public delegate void FriendDelegate0(PgosResult a0);
public delegate void FriendDelegate1(PgosResult a0, BatchGetPlayerFriendsLimitResult a1);

Type Reference: