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
| API | Description |
|---|---|
| BatchGetPlayerCurrentPartyIds | BGet the current party ids of players, if a player is not in any party currently, the corresponding party id is empty string |
| GetPartyInfo | Get 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:
| Param | Type | Description |
|---|---|---|
| params | const BatchGetPlayerCurrentPartyIdsParams& | |
| result_callback | PgosDataCallback<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:
| Param | Type | Description |
|---|---|---|
| params | const GetPartyInfoParams& | |
| result_callback | PgosDataCallback<GetPartyInfoResult> | The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD. |
Return: void