google_api_games v0.12.0 GoogleApi.Games.V1.Model.TurnBasedMatchTurn View Source

This is a JSON template for the object representing a turn.

Attributes

  • data (type: GoogleApi.Games.V1.Model.TurnBasedMatchDataRequest.t, default: nil) - The shared game state data after the turn is over.
  • kind (type: String.t, default: games#turnBasedMatchTurn) - Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchTurn.
  • matchVersion (type: integer(), default: nil) - The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
  • pendingParticipantId (type: String.t, default: nil) - The ID of the participant who should take their turn next. May be set to the current player's participant ID to update match state without changing the turn. If not set, the match will wait for other player(s) to join via automatching; this is only valid if automatch criteria is set on the match with remaining slots for automatched players.
  • results (type: list(GoogleApi.Games.V1.Model.ParticipantResult.t), default: nil) - The match results for the participants in the match.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Games.V1.Model.TurnBasedMatchTurn{
  data: GoogleApi.Games.V1.Model.TurnBasedMatchDataRequest.t(),
  kind: String.t(),
  matchVersion: integer(),
  pendingParticipantId: String.t(),
  results: [GoogleApi.Games.V1.Model.ParticipantResult.t()]
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.