본문으로 건너뛰기

테이블 조회

리더보드 테이블 정보를 조회 합니다.

호출 정보

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