google_api_games v0.16.0 GoogleApi.Games.V1.Model.AchievementDefinition View Source

An achievement definition object.

Attributes

  • achievementType (type: String.t, default: nil) - The type of the achievement.
  • description (type: String.t, default: nil) - The description of the achievement.
  • experiencePoints (type: String.t, default: nil) - Experience points which will be earned when unlocking this achievement.
  • formattedTotalSteps (type: String.t, default: nil) - The total steps for an incremental achievement as a string.
  • id (type: String.t, default: nil) - The ID of the achievement.
  • initialState (type: String.t, default: nil) - The initial state of the achievement.
  • isRevealedIconUrlDefault (type: boolean(), default: nil) - Indicates whether the revealed icon image being returned is a default image, or is provided by the game.
  • isUnlockedIconUrlDefault (type: boolean(), default: nil) - Indicates whether the unlocked icon image being returned is a default image, or is game-provided.
  • kind (type: String.t, default: nil) - Uniquely identifies the type of this resource. Value is always the fixed string games#achievementDefinition.
  • name (type: String.t, default: nil) - The name of the achievement.
  • revealedIconUrl (type: String.t, default: nil) - The image URL for the revealed achievement icon.
  • totalSteps (type: integer(), default: nil) - The total steps for an incremental achievement.
  • unlockedIconUrl (type: String.t, default: nil) - The image URL for the unlocked achievement icon.

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.AchievementDefinition{
  achievementType: String.t(),
  description: String.t(),
  experiencePoints: String.t(),
  formattedTotalSteps: String.t(),
  id: String.t(),
  initialState: String.t(),
  isRevealedIconUrlDefault: boolean(),
  isUnlockedIconUrlDefault: boolean(),
  kind: String.t(),
  name: String.t(),
  revealedIconUrl: String.t(),
  totalSteps: integer(),
  unlockedIconUrl: String.t()
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.