Search Table
Retrieves leaderboard table information.
Call Information
public void TableShow (string tableCode, PlayNANOODelegate callback) {}
Call Details
| Parameter | Description | Type |
|---|---|---|
| tableCode | Table code | string |
| callback | Communication result | PlayNANOODelegate |
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");
}
});
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Rotation": "string",
"RotationCount": 0,
"RotationTimeLeft": 0,
"RecordType": "string",
"RecordSortType": "string",
"TotalIds": 0
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| Rotation | Leaderboard type | string |
| RotationCount | Leaderboard rotation count | integer |
| RotationTimeLeft | Time remaining until next leaderboard rotation | integer |
| RecordType | Leaderboard recording method | string |
| RecordSortType | Leaderboard sort method | string |
| TotalIds | Total number of players recorded in the leaderboard | double |