ListLeaderboardScoresResponse
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"kind": string,
"nextPageToken": string,
"prevPageToken": string,
"numScores": string,
"playerScore": {
object (LeaderboardEntry )
},
"items": [
{
object (LeaderboardEntry )
}
]
} |
字段 |
kind |
string
唯一标识此资源的类型。值始终为固定字符串 games#leaderboardScores 。
|
nextPageToken |
string
下一页结果的分页令牌。
|
prevPageToken |
string
上一页结果的分页令牌。
|
numScores |
string (int64 format)
排行榜中的得分总数。
|
playerScore |
object (LeaderboardEntry )
请求玩家在排行榜上的得分。玩家的得分可能会同时显示在此处和上面的得分列表中。如果您查看的是公开排行榜,并且玩家未公开分享其游戏信息,则不会显示 scoreRank 和 formattedScoreRank 值。
|
items[] |
object (LeaderboardEntry )
排行榜中的得分。
|
LeaderboardEntry
JSON 表示法 |
{
"kind": string,
"player": {
object (Player )
},
"scoreRank": string,
"formattedScoreRank": string,
"scoreValue": string,
"formattedScore": string,
"timeSpan": enum (ScoreTimeSpan ),
"writeTimestampMillis": string,
"scoreTag": string
} |
字段 |
kind |
string
唯一标识此资源的类型。值始终为固定字符串 games#leaderboardEntry 。
|
player |
object (Player )
获得此得分的玩家。
|
scoreRank |
string (int64 format)
此分数在此排行榜中的排名。
|
formattedScoreRank |
string
此排行榜中此分数排名的本地化字符串。
|
scoreValue |
string (int64 format)
此得分的数值。
|
formattedScore |
string
此得分的数值的本地化字符串。
|
timeSpan |
enum (ScoreTimeSpan )
此最高分的时段。
|
writeTimestampMillis |
string (int64 format)
此得分记录的时间戳,以从公元纪年开始计算的毫秒数表示(世界协调时间 [UTC])。
|
scoreTag |
string
有关该得分的其他信息。值不得超过 64 个 URI 安全字符(如 RFC 3986 的第 2.3 节所定义)。
|
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# ListLeaderboardScoresResponse\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [LeaderboardEntry](#LeaderboardEntry)\n - [JSON representation](#LeaderboardEntry.SCHEMA_REPRESENTATION)\n\nA ListScores response.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"nextPageToken\": string, \"prevPageToken\": string, \"numScores\": string, \"playerScore\": { object (/games/services/web/api/rest/v1/ListLeaderboardScoresResponse#LeaderboardEntry) }, \"items\": [ { object (/games/services/web/api/rest/v1/ListLeaderboardScoresResponse#LeaderboardEntry) } ] } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardScores`. |\n| `nextPageToken` | `string` The pagination token for the next page of results. |\n| `prevPageToken` | `string` The pagination token for the previous page of results. |\n| `numScores` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The total number of scores in the leaderboard. |\n| `playerScore` | `object (`[LeaderboardEntry](/games/services/web/api/rest/v1/ListLeaderboardScoresResponse#LeaderboardEntry)`)` The score of the requesting player on the leaderboard. The player's score may appear both here and in the list of scores above. If you are viewing a public leaderboard and the player is not sharing their gameplay information publicly, the `scoreRank`and `formattedScoreRank` values will not be present. |\n| `items[]` | `object (`[LeaderboardEntry](/games/services/web/api/rest/v1/ListLeaderboardScoresResponse#LeaderboardEntry)`)` The scores in the leaderboard. |\n\nLeaderboardEntry\n----------------\n\nThe Leaderboard Entry resource.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"player\": { object (/games/services/web/api/rest/v1/players#Player) }, \"scoreRank\": string, \"formattedScoreRank\": string, \"scoreValue\": string, \"formattedScore\": string, \"timeSpan\": enum (/games/services/web/api/rest/v1/scores#ScoreTimeSpan), \"writeTimestampMillis\": string, \"scoreTag\": string } ``` |\n\n| Fields ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardEntry`. |\n| `player` | `object (`[Player](/games/services/web/api/rest/v1/players#Player)`)` The player who holds this score. |\n| `scoreRank` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The rank of this score for this leaderboard. |\n| `formattedScoreRank` | `string` The localized string for the rank of this score for this leaderboard. |\n| `scoreValue` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The numerical value of this score. |\n| `formattedScore` | `string` The localized string for the numerical value of this score. |\n| `timeSpan` | `enum (`[ScoreTimeSpan](/games/services/web/api/rest/v1/scores#ScoreTimeSpan)`)` The time span of this high score. |\n| `writeTimestampMillis` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. |\n| `scoreTag` | `string` Additional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. |"]]