View Source GoogleApi.Games.V1.Model.AchievementUpdateRequest (google_api_games v0.26.0)

A request to update an achievement.

Attributes

  • achievementId (type: String.t, default: nil) - The achievement this update is being applied to.
  • incrementPayload (type: GoogleApi.Games.V1.Model.GamesAchievementIncrement.t, default: nil) - The payload if an update of type INCREMENT was requested for the achievement.
  • kind (type: String.t, default: nil) - Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateRequest.
  • setStepsAtLeastPayload (type: GoogleApi.Games.V1.Model.GamesAchievementSetStepsAtLeast.t, default: nil) - The payload if an update of type SET_STEPS_AT_LEAST was requested for the achievement.
  • updateType (type: String.t, default: nil) - The type of update being applied.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Games.V1.Model.AchievementUpdateRequest{
  achievementId: String.t() | nil,
  incrementPayload:
    GoogleApi.Games.V1.Model.GamesAchievementIncrement.t() | nil,
  kind: String.t() | nil,
  setStepsAtLeastPayload:
    GoogleApi.Games.V1.Model.GamesAchievementSetStepsAtLeast.t() | nil,
  updateType: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.