PlayerEvent
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"kind": string,
"definitionId": string,
"playerId": string,
"numEvents": string,
"formattedNumEvents": string
} |
字段 |
kind |
string
唯一标识此资源的类型。值始终为固定字符串 games#playerEvent 。
|
definitionId |
string
事件定义的 ID。
|
playerId |
string
玩家的 ID。
|
numEvents |
string (int64 format)
此事件当前发生的次数。
|
formattedNumEvents |
string
此事件当前发生的次数,以字符串表示。此字符串的格式取决于您在 Play 管理中心内对事件的配置。
|
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# PlayerEvent\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAn event status resource.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"definitionId\": string, \"playerId\": string, \"numEvents\": string, \"formattedNumEvents\": string } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerEvent`. |\n| `definitionId` | `string` The ID of the event definition. |\n| `playerId` | `string` The ID of the player. |\n| `numEvents` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The current number of times this event has occurred. |\n| `formattedNumEvents` | `string` The current number of times this event has occurred, as a string. The formatting of this string depends on the configuration of your event in the Play Games Developer Console. |"]]