跳转到主要内容

查询表

查询排行榜表信息。

调用信息

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

调用详细信息

参数说明类型
tableCode表代码string
callback通信结果PlayNANOODelegate

源代码

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");
}
});
}
}

通信结果

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

通信结果详细信息

数据键说明类型
Rotation排行榜类型string
RotationCount排行榜轮次integer
RotationTimeLeft排行榜距下一轮次剩余时间integer
RecordType排行榜记录方式string
RecordSortType排行榜排序方式string
TotalIds排行榜中已记录的总玩家数double