Create Table
Creates a leaderboard table.
Call Information
public void TableCreate (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 = "ID";
tableManage.name = "ROTATION";
tableManage.rotation = PlayNANOO.LeaderBoard.v20240301.Rotaion.ROTATION;
tableManage.recordType = PlayNANOO.LeaderBoard.v20240301.RecordType.HIGHSCORE;
tableManage.recordSortType = PlayNANOO.LeaderBoard.v20240301.SortType.DESC;
tableManage.recordPriority = false;
tableManage.rotationDetail = new PlayNANOO.LeaderBoard.v20240301.TableManageRotationDetail();
tableManage.rotationDetail.period = 10;
tableManage.rotationDetail.timeOffset = 32400;
tableManage.rotationDetail.date = "2024-03-01";
tableManage.rotationDetail.time = "15:00";
plugin.LeaderboardManagerV20240301.TableCreate(tableManage, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
Debug.Log(values["TableId"]);
}
else
{
Debug.Log("Fail");
}
});
}
}
TableManage Details
| Data Key | Description | Type |
|---|---|---|
| uid | Table identifier ID (randomly generated if not provided) | string |
| name | Table name | string |
| ratation | Leaderboard rotation cycle | TableCreate.rotation |
| recordType | Leaderboard recording method | TableCreate.recordType |
| recordSortType | Leaderboard sort method | TableCreate.recordSortType |
| recordPriority | Leaderboard record priority setting | boolean |
| rotationDetail.period | Leaderboard rotation cycle | integer |
| rotationDetail.timeOffset | Leaderboard time offset (enter time difference based on UTC) | integer |
| rotationDetail.date | Leaderboard start date (enter in UTC time) | string |
| rotationDetail.time | Leaderboard start time (enter in UTC time) | string |
info
Enter rotationDetail information only when the leaderboard is configured with a rotation cycle.
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"TableId": "string"
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| TableId | Table code | string |