Server TitleConfigData API Reference
Title Config Data is a set of key-value pairs for the whole title. It is commonly used to store configuration data that is applicable across the title-wide, such as title region info list, game client version control data, and so on.
API List
| API | Description |
|---|---|
| GetTitleConfigKVData | Query the specified key-value data of the title config data. |
| GetAllTitleConfigKVData | Query all key-value data of the title config data. |
API Details
GetTitleConfigKVData
Query the specified key-value data of the title config data.
/**
* Query the specified key-value data of the title config data.
*
* @param query_keys Keys to query
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void GetTitleConfigKVData(
const pgos::pvector<pgos::pstring>& query_keys,
PgosDataCallback<TitleConfigKVDataQueryResult> result_callback);
Parameters:
| Param | Type | Description |
|---|---|---|
| query_keys | const std::vector<std::string>& | Keys to query |
| result_callback | PgosDataCallback<TitleConfigKVDataQueryResult> | The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD. |
Return: void
GetAllTitleConfigKVData
Query all key-value data of the title config data.
/**
* Query all key-value data of the title config data.
*
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void GetAllTitleConfigKVData(
PgosDataCallback<TitleConfigKVDataQueryResult> result_callback);
Parameters:
| Param | Type | Description |
|---|---|---|
| result_callback | PgosDataCallback<TitleConfigKVDataQueryResult> | The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD. |
Return: void