Class PlayerGameEvent
A representation of a single player game event triggered by a player's event in a game. This might be completing a level, unlocking an item, or finishing a match.
Implements
Inherited Members
Namespace: Google.Apis.Games.v1.Data
Assembly: Google.Apis.Games.v1.dll
Syntax
public class PlayerGameEvent : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventId
Required. A unique client-generated UUID for this specific event instance. Used for server-side idempotency and deduplication. Submitting an event with a previously recorded event_id for the same player will be ignored.
Declaration
[JsonProperty("eventId")]
public virtual string EventId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventName
Required. Client-defined name of the event (e.g., "run_completed", "level_up"). Maximum length: 100 characters.
Declaration
[JsonProperty("eventName")]
public virtual string EventName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventProperties
Optional. Key-value properties providing details about the event. - Maximum number of properties: 25. - Property key maximum length: 100 characters. - String values within PropertyValue maximum length: 1024 characters.
Declaration
[JsonProperty("eventProperties")]
public virtual IDictionary<string, PropertyValue> EventProperties { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, PropertyValue> |
EventTime
object representation of EventTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use EventTimeDateTimeOffset instead.")]
public virtual object EventTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
EventTimeDateTimeOffset
DateTimeOffset representation of EventTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? EventTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
EventTimeRaw
Required. The time from the client when this specific event was performed.
Declaration
[JsonProperty("eventTime")]
public virtual string EventTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |