跳到主要内容

Server Party API Reference

Party is a service for creating an instant team for players. The player can use it to build a "temporary virtual team" and then fire a battle.

API List​

APIDescription
BatchGetPlayerCurrentPartyIdsBGet the current party ids of players, if a player is not in any party currently, the corresponding party id is empty string
GetPartyInfoGet party info by party id

API Details​

BatchGetPlayerCurrentPartyIds​

BGet the current party ids of players, if a player is not in any party currently, the corresponding party id is empty string

/**
* BGet the current party ids of players, if a player is not in any party currently, the corresponding party id is empty string
*
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void BatchGetPlayerCurrentPartyIds(
const BatchGetPlayerCurrentPartyIdsParams& params,
PgosDataCallback<BatchGetPlayerCurrentPartyIdsResult> result_callback);

Parameters:

ParamTypeDescription
paramsconst BatchGetPlayerCurrentPartyIdsParams&
result_callbackPgosDataCallback<BatchGetPlayerCurrentPartyIdsResult>The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.

Return: void

GetPartyInfo​

Get party info by party id

/**
* Get party info by party id
*
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void GetPartyInfo(
const GetPartyInfoParams& params,
PgosDataCallback<GetPartyInfoResult> result_callback);

Parameters:

ParamTypeDescription
paramsconst GetPartyInfoParams&
result_callbackPgosDataCallback<GetPartyInfoResult>The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.

Return: void