class Google::Apis::GamesV1::TurnBasedMatchParticipant
This is a JSON template for a participant in a turn-based match.
Attributes
True if this participant was auto-matched with the requesting player. Corresponds to the JSON property `autoMatched` @return [Boolean]
True if this participant was auto-matched with the requesting player. Corresponds to the JSON property `autoMatched` @return [Boolean]
This is a JSON template for an anonymous player Corresponds to the JSON property `autoMatchedPlayer` @return [Google::Apis::GamesV1::AnonymousPlayer]
An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts. Corresponds to the JSON property `id` @return [String]
Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant. Corresponds to the JSON property `kind` @return [String]
This is a JSON template for a Player resource. Corresponds to the JSON property `player` @return [Google::Apis::GamesV1::Player]
The status of the participant with respect to the match. Possible values are:
-
“PARTICIPANT_NOT_INVITED_YET” - The participant is slated to be invited to
the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
-
“PARTICIPANT_INVITED” - The participant has been invited to join the match,
but has not yet responded.
-
“PARTICIPANT_JOINED” - The participant has joined the match (either after
creating it or accepting an invitation.)
-
“PARTICIPANT_DECLINED” - The participant declined an invitation to join the
match.
-
“PARTICIPANT_LEFT” - The participant joined the match and then left it.
-
“PARTICIPANT_FINISHED” - The participant finished playing in the match.
-
“PARTICIPANT_UNRESPONSIVE” - The participant did not take their turn in the
allotted time. Corresponds to the JSON property `status` @return [String]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 4458 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 4463 def update!(**args) @auto_matched = args[:auto_matched] if args.key?(:auto_matched) @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @player = args[:player] if args.key?(:player) @status = args[:status] if args.key?(:status) end