games  v1
Public Member Functions | Static Public Member Functions | List of all members
google_games_api::AchievementUpdateResponse Class Reference

#include <achievement_update_response.h>

Inheritance diagram for google_games_api::AchievementUpdateResponse:

Public Member Functions

 AchievementUpdateResponse (const Json::Value &storage)
 
 AchievementUpdateResponse (Json::Value *storage)
 
virtual ~AchievementUpdateResponse ()
 
const StringPiece GetTypeName () const
 
bool has_achievement_id () const
 
void clear_achievement_id ()
 
const StringPiece get_achievement_id () const
 
void set_achievement_id (const StringPiece &value)
 
bool has_current_state () const
 
void clear_current_state ()
 
const StringPiece get_current_state () const
 
void set_current_state (const StringPiece &value)
 
bool has_current_steps () const
 
void clear_current_steps ()
 
int32 get_current_steps () const
 
void set_current_steps (int32 value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_newly_unlocked () const
 
void clear_newly_unlocked ()
 
bool get_newly_unlocked () const
 
void set_newly_unlocked (bool value)
 
bool has_update_occurred () const
 
void clear_update_occurred ()
 
bool get_update_occurred () const
 
void set_update_occurred (bool value)
 

Static Public Member Functions

static AchievementUpdateResponseNew ()
 

Detailed Description

This is a JSON template for an achievement update response.

Constructor & Destructor Documentation

◆ AchievementUpdateResponse() [1/2]

google_games_api::AchievementUpdateResponse::AchievementUpdateResponse ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ AchievementUpdateResponse() [2/2]

google_games_api::AchievementUpdateResponse::AchievementUpdateResponse ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~AchievementUpdateResponse()

google_games_api::AchievementUpdateResponse::~AchievementUpdateResponse ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_achievement_id()

void google_games_api::AchievementUpdateResponse::clear_achievement_id ( )
inline

Clears the 'achievementId' attribute.

◆ clear_current_state()

void google_games_api::AchievementUpdateResponse::clear_current_state ( )
inline

Clears the 'currentState' attribute.

◆ clear_current_steps()

void google_games_api::AchievementUpdateResponse::clear_current_steps ( )
inline

Clears the 'currentSteps' attribute.

◆ clear_kind()

void google_games_api::AchievementUpdateResponse::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_newly_unlocked()

void google_games_api::AchievementUpdateResponse::clear_newly_unlocked ( )
inline

Clears the 'newlyUnlocked' attribute.

◆ clear_update_occurred()

void google_games_api::AchievementUpdateResponse::clear_update_occurred ( )
inline

Clears the 'updateOccurred' attribute.

◆ get_achievement_id()

const StringPiece google_games_api::AchievementUpdateResponse::get_achievement_id ( ) const
inline

Get the value of the 'achievementId' attribute.

◆ get_current_state()

const StringPiece google_games_api::AchievementUpdateResponse::get_current_state ( ) const
inline

Get the value of the 'currentState' attribute.

◆ get_current_steps()

int32 google_games_api::AchievementUpdateResponse::get_current_steps ( ) const
inline

Get the value of the 'currentSteps' attribute.

◆ get_kind()

const StringPiece google_games_api::AchievementUpdateResponse::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_newly_unlocked()

bool google_games_api::AchievementUpdateResponse::get_newly_unlocked ( ) const
inline

Get the value of the 'newlyUnlocked' attribute.

◆ get_update_occurred()

bool google_games_api::AchievementUpdateResponse::get_update_occurred ( ) const
inline

Get the value of the 'updateOccurred' attribute.

◆ GetTypeName()

const StringPiece google_games_api::AchievementUpdateResponse::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_games_api::AchievementUpdateResponse

◆ has_achievement_id()

bool google_games_api::AchievementUpdateResponse::has_achievement_id ( ) const
inline

Determine if the 'achievementId' attribute was set.

Returns
true if the 'achievementId' attribute was set.

◆ has_current_state()

bool google_games_api::AchievementUpdateResponse::has_current_state ( ) const
inline

Determine if the 'currentState' attribute was set.

Returns
true if the 'currentState' attribute was set.

◆ has_current_steps()

bool google_games_api::AchievementUpdateResponse::has_current_steps ( ) const
inline

Determine if the 'currentSteps' attribute was set.

Returns
true if the 'currentSteps' attribute was set.

◆ has_kind()

bool google_games_api::AchievementUpdateResponse::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_newly_unlocked()

bool google_games_api::AchievementUpdateResponse::has_newly_unlocked ( ) const
inline

Determine if the 'newlyUnlocked' attribute was set.

Returns
true if the 'newlyUnlocked' attribute was set.

◆ has_update_occurred()

bool google_games_api::AchievementUpdateResponse::has_update_occurred ( ) const
inline

Determine if the 'updateOccurred' attribute was set.

Returns
true if the 'updateOccurred' attribute was set.

◆ New()

AchievementUpdateResponse * google_games_api::AchievementUpdateResponse::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_achievement_id()

void google_games_api::AchievementUpdateResponse::set_achievement_id ( const StringPiece &  value)
inline

Change the 'achievementId' attribute.

The achievement this update is was applied to.

Parameters
[in]valueThe new value.

◆ set_current_state()

void google_games_api::AchievementUpdateResponse::set_current_state ( const StringPiece &  value)
inline

Change the 'currentState' attribute.

The current state of the achievement. Possible values are:

"HIDDEN"
Achievement is hidden.
"REVEALED"
Achievement is revealed.
"UNLOCKED"
Achievement is unlocked.
Parameters
[in]valueThe new value.

◆ set_current_steps()

void google_games_api::AchievementUpdateResponse::set_current_steps ( int32  value)
inline

Change the 'currentSteps' attribute.

The current steps recorded for this achievement if it is incremental.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_games_api::AchievementUpdateResponse::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

Uniquely identifies the type of this resource. Value is always the fixed string games::achievementUpdateResponse.

Parameters
[in]valueThe new value.

◆ set_newly_unlocked()

void google_games_api::AchievementUpdateResponse::set_newly_unlocked ( bool  value)
inline

Change the 'newlyUnlocked' attribute.

Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).

Parameters
[in]valueThe new value.

◆ set_update_occurred()

void google_games_api::AchievementUpdateResponse::set_update_occurred ( bool  value)
inline

Change the 'updateOccurred' attribute.

Whether the requested updates actually affected the achievement.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: