Skip to main content

Create Table

Creates a leaderboard table.

Call Information

public void TableCreate (TableManage tableManage, PlayNANOODelegate callback) {}

Call Details

ParameterDescriptionType
tableManageTable configuration informationMultiSaveParam
callbackCommunication resultPlayNANOODelegate

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 KeyDescriptionType
uidTable identifier ID (randomly generated if not provided)string
nameTable namestring
ratationLeaderboard rotation cycleTableCreate.rotation
recordTypeLeaderboard recording methodTableCreate.recordType
recordSortTypeLeaderboard sort methodTableCreate.recordSortType
recordPriorityLeaderboard record priority settingboolean
rotationDetail.periodLeaderboard rotation cycleinteger
rotationDetail.timeOffsetLeaderboard time offset (enter time difference based on UTC)integer
rotationDetail.dateLeaderboard start date (enter in UTC time)string
rotationDetail.timeLeaderboard 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 KeyDescriptionType
TableIdTable codestring