Create Table
Creates a leaderboard table.
Call Information
public void TableCreate (TableManage tableManage, PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
tableManage | Table setup 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 Information Details
Data Key | Description | Type |
---|---|---|
uid | Table Unique ID (Randomly generated if not entered) | string |
name | Table name | string |
rotation | Leaderboard refresh cycle | TableCreate.rotation |
recordType | Leaderboard record method | TableCreate.recordType |
recordSortType | Leaderboard sort method | TableCreate.recordSortType |
recordPriority | Leaderboard record priority | boolean |
rotationDetail.period | Leaderboard refresh cycle | integer |
rotationDetail.timeOffset | Leaderboard offset time (Time difference input 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 if leaderboard refresh cycle is set.
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"TableId": "string"
}
Communication Result
Data Key | Description | Type |
---|---|---|
TableId | Table Code | string |