SubmitLeaderboardScoreResponse
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"kind": string,
"beatenScoreTimeSpans": [
enum (ScoreTimeSpan )
],
"unbeatenScores": [
{
object (PlayerScore )
}
],
"formattedScore": string,
"leaderboardId": string,
"scoreTag": string
} |
字段 |
kind |
string
唯一标识此资源的类型。值始终为固定字符串 games#playerScoreResponse 。
|
beatenScoreTimeSpans[] |
enum (ScoreTimeSpan )
提交的分数优于相应时间段的现有分数的时间段。
|
unbeatenScores[] |
object (PlayerScore )
未被超越的时间段内的得分。例如,提交的得分可能高于玩家的 DAILY 得分,但不高于玩家在 WEEKLY 或 ALL_TIME 时间段内的得分。
|
formattedScore |
string
提交的分数的格式化值。
|
leaderboardId |
string
此得分已提交到的排行榜 ID。
|
scoreTag |
string
有关此得分的更多信息。值不得超过 64 个 URI 安全字符(如 RFC 3986 的第 2.3 节所定义)。
|
PlayerScore
JSON 表示法 |
{
"kind": string,
"timeSpan": enum (ScoreTimeSpan ),
"score": string,
"formattedScore": string,
"scoreTag": string
} |
字段 |
kind |
string
唯一标识此资源的类型。值始终为固定字符串 games#playerScore 。
|
timeSpan |
enum (ScoreTimeSpan )
此球员得分的时段。
|
score |
string (int64 format)
此玩家得分的数值。
|
formattedScore |
string
此球员得分的格式化得分。
|
scoreTag |
string
有关此得分的更多信息。值不得超过 64 个 URI 安全字符(如 RFC 3986 的第 2.3 节所定义)。
|
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# SubmitLeaderboardScoreResponse\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [PlayerScore](#PlayerScore)\n - [JSON representation](#PlayerScore.SCHEMA_REPRESENTATION)\n\nA list of leaderboard entry resources.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"beatenScoreTimeSpans\": [ enum (/games/services/web/api/rest/v1/scores#ScoreTimeSpan) ], \"unbeatenScores\": [ { object (/games/services/web/api/rest/v1/SubmitLeaderboardScoreResponse#PlayerScore) } ], \"formattedScore\": string, \"leaderboardId\": string, \"scoreTag\": string } ``` |\n\n| Fields ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScoreResponse`. |\n| `beatenScoreTimeSpans[]` | `enum (`[ScoreTimeSpan](/games/services/web/api/rest/v1/scores#ScoreTimeSpan)`)` The time spans where the submitted score is better than the existing score for that time span. |\n| `unbeatenScores[]` | `object (`[PlayerScore](/games/services/web/api/rest/v1/SubmitLeaderboardScoreResponse#PlayerScore)`)` The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's `DAILY` score, but not better than the player's scores for the `WEEKLY` or `ALL_TIME` time spans. |\n| `formattedScore` | `string` The formatted value of the submitted score. |\n| `leaderboardId` | `string` The leaderboard ID that this score was submitted to. |\n| `scoreTag` | `string` Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. |\n\nPlayerScore\n-----------\n\nA player score.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"timeSpan\": enum (/games/services/web/api/rest/v1/scores#ScoreTimeSpan), \"score\": string, \"formattedScore\": string, \"scoreTag\": string } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScore`. |\n| `timeSpan` | `enum (`[ScoreTimeSpan](/games/services/web/api/rest/v1/scores#ScoreTimeSpan)`)` The time span for this player score. |\n| `score` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The numerical value for this player score. |\n| `formattedScore` | `string` The formatted score for this player score. |\n| `scoreTag` | `string` Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. |"]]