class Google::Apis::GamesV1::TurnBasedMatchTurn

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

Attributes

data[RW]

This is a JSON template for sending a turn-based match data object. Corresponds to the JSON property `data` @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchTurn. Corresponds to the JSON property `kind` @return [String]

match_version[RW]

The version of this match: an increasing counter, used to avoid out-of-date updates to the match. Corresponds to the JSON property `matchVersion` @return [Fixnum]

pending_participant_id[RW]

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. Corresponds to the JSON property `pendingParticipantId` @return [String]

results[RW]

The match results for the participants in the match. Corresponds to the JSON property `results` @return [Array<Google::Apis::GamesV1::ParticipantResult>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 4618
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 4623
def update!(**args)
  @data = args[:data] if args.key?(:data)
  @kind = args[:kind] if args.key?(:kind)
  @match_version = args[:match_version] if args.key?(:match_version)
  @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id)
  @results = args[:results] if args.key?(:results)
end