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

This is a JSON template for 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



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

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)


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

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)


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

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)


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

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)


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

def update_occurred
  @update_occurred
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



113
114
115
116
117
118
# 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