Skip to main content

Create Table

Creates a leaderboard table.

Call Information

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

Call Information Details

ParameterDescriptionType
tableManageTable setup 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 Information Details

Data KeyDescriptionType
uidTable Unique ID (Randomly generated if not entered)string
nameTable namestring
rotationLeaderboard refresh cycleTableCreate.rotation
recordTypeLeaderboard record methodTableCreate.recordType
recordSortTypeLeaderboard sort methodTableCreate.recordSortType
recordPriorityLeaderboard record priorityboolean
rotationDetail.periodLeaderboard refresh cycleinteger
rotationDetail.timeOffsetLeaderboard offset time (Time difference input 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 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 KeyDescriptionType
TableIdTable Codestring