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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AchievementResetResponse

Returns a new instance of AchievementResetResponse.



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

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)


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

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)


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

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)


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

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)


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

def update_occurred
  @update_occurred
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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