GoogleApi.Games.V1.Model.PlayerAchievement (google_api_games v0.21.1) View Source

An achievement object.

Attributes

  • achievementState (type: String.t, default: nil) - The state of the achievement.
  • currentSteps (type: integer(), default: nil) - The current steps for an incremental achievement.
  • experiencePoints (type: String.t, default: nil) - Experience points earned for the achievement. This field is absent for achievements that have not yet been unlocked and 0 for achievements that have been unlocked by testers but that are unpublished.
  • formattedCurrentStepsString (type: String.t, default: nil) - The current steps for an incremental achievement as a string.
  • id (type: String.t, default: nil) - The ID of the achievement.
  • kind (type: String.t, default: nil) - Uniquely identifies the type of this resource. Value is always the fixed string games#playerAchievement.
  • lastUpdatedTimestamp (type: String.t, default: nil) - The timestamp of the last modification to this achievement's state.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Games.V1.Model.PlayerAchievement{
  achievementState: String.t(),
  currentSteps: integer(),
  experiencePoints: String.t(),
  formattedCurrentStepsString: String.t(),
  id: String.t(),
  kind: String.t(),
  lastUpdatedTimestamp: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.