Edit Table
Edits a leaderboard table.
Call Information
public void TableEdit (TableManage tableManage, PlayNANOODelegate callback) {}
Call Details
| Parameter | Description | Type |
|---|---|---|
| tableManage | Table configuration information | MultiSaveParam |
| callback | Communication result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
PlayNANOO.LeaderBoard.v20240301.TableManage tableManage = new PlayNANOO.LeaderBoard.v20240301.TableManage();
tableManage.uid = "TABLE_CODE";
tableManage.recordType = PlayNANOO.LeaderBoard.v20240301.RecordType.HIGHSCORE;
tableManage.recordSortType = PlayNANOO.LeaderBoard.v20240301.SortType.ASC;
tableManage.recordPriority = false;
plugin.LeaderboardManagerV20240301.TableEdit(tableManage, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}
TableManage Details
| Data Key | Description | Type |
|---|---|---|
| uid | Table identifier ID | string |
| recordType | Leaderboard recording method | TableCreate.recordType |
| recordSortType | Leaderboard sort method | TableCreate.recordSortType |
| recordPriority | Leaderboard record priority setting | boolean |
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status": "success"
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| Status | Processing result | string |