class Google::Apis::GamesV1::TurnBasedMatchTurn
This is a JSON template for the object representing a turn.
Attributes
This is a JSON template for sending a turn-based match data object. Corresponds to the JSON property `data` @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest]
Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchTurn. Corresponds to the JSON property `kind` @return [String]
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]
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]
The match results for the participants in the match. Corresponds to the JSON property `results` @return [Array<Google::Apis::GamesV1::ParticipantResult>]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 4618 def initialize(**args) update!(**args) end
Public Instance Methods
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