View Source GoogleApi.Games.V1.Model.AchievementUpdateResponse (google_api_games v0.25.0)

An updated achievement.

Attributes

  • achievementId (type: String.t, default: nil) - The achievement this update is was applied to.
  • currentState (type: String.t, default: nil) - The current state of the achievement.
  • currentSteps (type: integer(), default: nil) - The current steps recorded for this achievement if it is incremental.
  • kind (type: String.t, default: nil) - Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateResponse.
  • newlyUnlocked (type: boolean(), default: nil) - Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
  • updateOccurred (type: boolean(), default: nil) - Whether the requested updates actually affected the achievement.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Games.V1.Model.AchievementUpdateResponse{
  achievementId: String.t() | nil,
  currentState: String.t() | nil,
  currentSteps: integer() | nil,
  kind: String.t() | nil,
  newlyUnlocked: boolean() | nil,
  updateOccurred: boolean() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.