Class: Google::Apis::GamesManagementV1management::AchievementResetResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_management_v1management/classes.rb,
generated/google/apis/games_management_v1management/representations.rb,
generated/google/apis/games_management_v1management/representations.rb

Overview

An achievement reset response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AchievementResetResponse

Returns a new instance of AchievementResetResponse.



106
107
108
# File 'generated/google/apis/games_management_v1management/classes.rb', line 106

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#current_stateString

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

Returns:

  • (String)


87
88
89
# File 'generated/google/apis/games_management_v1management/classes.rb', line 87

def current_state
  @current_state
end

#definition_idString

The ID of an achievement for which player state has been updated. Corresponds to the JSON property definitionId

Returns:

  • (String)


92
93
94
# File 'generated/google/apis/games_management_v1management/classes.rb', line 92

def definition_id
  @definition_id
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#achievementResetResponse. Corresponds to the JSON property kind

Returns:

  • (String)


98
99
100
# File 'generated/google/apis/games_management_v1management/classes.rb', line 98

def kind
  @kind
end

#update_occurredBoolean Also known as: update_occurred?

Flag to indicate if the requested update actually occurred. Corresponds to the JSON property updateOccurred

Returns:

  • (Boolean)


103
104
105
# File 'generated/google/apis/games_management_v1management/classes.rb', line 103

def update_occurred
  @update_occurred
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



111
112
113
114
115
116
# File 'generated/google/apis/games_management_v1management/classes.rb', line 111

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