google_api_games v0.11.0 GoogleApi.Games.V1.Model.ParticipantResult View Source

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

Attributes

  • kind (type: String.t, default: games#participantResult) - Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
  • participantId (type: String.t, default: nil) - The ID of the participant.
  • placing (type: integer(), default: nil) - 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.
  • result (type: String.t, default: nil) - 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.

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.ParticipantResult{
  kind: String.t(),
  participantId: String.t(),
  placing: integer(),
  result: String.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.