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

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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.