Skip to main content

Query Table

Queries leaderboard table information.

Call Information

public void TableShow (string tableCode, PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
tableCodeTable Codestring
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

plugin.LeaderboardManagerV20240301.TableShow(tableCode, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
Debug.Log(values["Rotation"]);
Debug.Log(values["RotationCount"]);
Debug.Log(values["RotationTimeLeft"]);
Debug.Log(values["RecordType"]);
Debug.Log(values["RecordSortType"]);
Debug.Log(values["TotalIds"]);
}
else
{
Debug.Log("Fail");
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Rotation": "string",
"RotationCount": 0,
"RotationTimeLeft": 0,
"RecordType": "string",
"RecordSortType": "string",
"TotalIds": 0
}

Communication Result

Data KeyDescriptionType
RotationLeaderboard 타입string
RotationCountLeaderboard 회차integer
RotationTimeLeftLeaderboard 다음 회차까지 남은 시간integer
RecordTypeLeaderboard 기록 방식string
RecordSortTypeLeaderboard 정렬 방식string
TotalIdsLeaderboard에 기록된 전체 플레이어 수double