class Google::Apis::GamesV1::ParticipantResult

This is a JSON template for a result for a match participant.

Attributes

kind[RW]

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

participant_id[RW]

The ID of the participant. Corresponds to the JSON property `participantId` @return [String]

placing[RW]

The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type. Corresponds to the JSON property `placing` @return [Fixnum]

result[RW]

The result of the participant for this match. Possible values are:

  • “MATCH_RESULT_WIN” - The participant won the match.

  • “MATCH_RESULT_LOSS” - The participant lost the match.

  • “MATCH_RESULT_TIE” - The participant tied the match.

  • “MATCH_RESULT_NONE” - There was no winner for the match (nobody wins or

loses this kind of game.)

  • “MATCH_RESULT_DISCONNECT” - The participant disconnected / left during the

match.

  • “MATCH_RESULT_DISAGREED” - Different clients reported different results for

this participant. Corresponds to the JSON property `result` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 1827
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 1832
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @participant_id = args[:participant_id] if args.key?(:participant_id)
  @placing = args[:placing] if args.key?(:placing)
  @result = args[:result] if args.key?(:result)
end