class Google::Apis::GamesManagementV1management::AchievementResetResponse

This is a JSON template for an achievement reset response.

Attributes

current_state[RW]

The current state of the achievement. This is the same as the initial state of the achievement. Possible values are:

  • “HIDDEN”- Achievement is hidden.

  • “REVEALED” - Achievement is revealed.

  • “UNLOCKED” - Achievement is unlocked.

Corresponds to the JSON property `currentState` @return [String]

definition_id[RW]

The ID of an achievement for which player state has been updated. Corresponds to the JSON property `definitionId` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#achievementResetResponse. Corresponds to the JSON property `kind` @return [String]

update_occurred[RW]

Flag to indicate if the requested update actually occurred. Corresponds to the JSON property `updateOccurred` @return [Boolean]

update_occurred?[RW]

Flag to indicate if the requested update actually occurred. Corresponds to the JSON property `updateOccurred` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_management_v1management/classes.rb, line 108
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_management_v1management/classes.rb, line 113
def update!(**args)
  @current_state = args[:current_state] if args.key?(:current_state)
  @definition_id = args[:definition_id] if args.key?(:definition_id)
  @kind = args[:kind] if args.key?(:kind)
  @update_occurred = args[:update_occurred] if args.key?(:update_occurred)
end