SubmitLeaderboardScoreResponse
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Danh sách tài nguyên cho bảng xếp hạng.
Biểu diễn dưới dạng JSON |
{
"kind": string,
"beatenScoreTimeSpans": [
enum (ScoreTimeSpan )
],
"unbeatenScores": [
{
object (PlayerScore )
}
],
"formattedScore": string,
"leaderboardId": string,
"scoreTag": string
} |
Trường |
kind |
string
Xác định duy nhất loại tài nguyên này. Giá trị luôn là chuỗi games#playerScoreResponse cố định.
|
beatenScoreTimeSpans[] |
enum (ScoreTimeSpan )
Khoảng thời gian mà điểm số đã gửi cao hơn điểm hiện tại trong khoảng thời gian đó.
|
unbeatenScores[] |
object (PlayerScore )
Điểm số trong khoảng thời gian chưa bị vượt qua. Ví dụ: điểm số đã gửi có thể cao hơn điểm số DAILY của người chơi, nhưng không cao hơn điểm số của người chơi trong khoảng thời gian WEEKLY hoặc ALL_TIME .
|
formattedScore |
string
Giá trị được định dạng của điểm số đã gửi.
|
leaderboardId |
string
Mã bảng xếp hạng mà điểm số này được gửi đến.
|
scoreTag |
string
Thông tin bổ sung về điểm số này. Các giá trị sẽ chứa không quá 64 ký tự an toàn cho URI như được xác định trong mục 2.3 của RFC 3986.
|
PlayerScore
Biểu diễn dưới dạng JSON |
{
"kind": string,
"timeSpan": enum (ScoreTimeSpan ),
"score": string,
"formattedScore": string,
"scoreTag": string
} |
Trường |
kind |
string
Xác định duy nhất loại tài nguyên này. Giá trị luôn là chuỗi games#playerScore cố định.
|
timeSpan |
enum (ScoreTimeSpan )
Khoảng thời gian cho điểm số của người chơi này.
|
score |
string (int64 format)
Giá trị bằng số cho điểm số của người chơi này.
|
formattedScore |
string
Điểm số được định dạng cho điểm số của người chơi này.
|
scoreTag |
string
Thông tin bổ sung về điểm số này. Các giá trị sẽ chứa không quá 64 ký tự an toàn cho URI như được xác định trong mục 2.3 của RFC 3986.
|
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],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. |"]]