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

#include <player_experience_info.h>

Inheritance diagram for google_games_api::PlayerExperienceInfo:

Public Member Functions

 PlayerExperienceInfo (const Json::Value &storage)
 
 PlayerExperienceInfo (Json::Value *storage)
 
virtual ~PlayerExperienceInfo ()
 
const StringPiece GetTypeName () const
 
bool has_current_experience_points () const
 
void clear_current_experience_points ()
 
int64 get_current_experience_points () const
 
void set_current_experience_points (int64 value)
 
bool has_current_level () const
 
void clear_current_level ()
 
const PlayerLevel get_current_level () const
 
PlayerLevel mutable_currentLevel ()
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_last_level_up_timestamp_millis () const
 
void clear_last_level_up_timestamp_millis ()
 
int64 get_last_level_up_timestamp_millis () const
 
void set_last_level_up_timestamp_millis (int64 value)
 
bool has_next_level () const
 
void clear_next_level ()
 
const PlayerLevel get_next_level () const
 
PlayerLevel mutable_nextLevel ()
 

Static Public Member Functions

static PlayerExperienceInfoNew ()
 

Detailed Description

This is a JSON template for 1P/3P metadata about the player's experience.

Constructor & Destructor Documentation

◆ PlayerExperienceInfo() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ PlayerExperienceInfo() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~PlayerExperienceInfo()

google_games_api::PlayerExperienceInfo::~PlayerExperienceInfo ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_current_experience_points()

void google_games_api::PlayerExperienceInfo::clear_current_experience_points ( )
inline

Clears the 'currentExperiencePoints' attribute.

◆ clear_current_level()

void google_games_api::PlayerExperienceInfo::clear_current_level ( )
inline

Clears the 'currentLevel' attribute.

◆ clear_kind()

void google_games_api::PlayerExperienceInfo::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_last_level_up_timestamp_millis()

void google_games_api::PlayerExperienceInfo::clear_last_level_up_timestamp_millis ( )
inline

Clears the 'lastLevelUpTimestampMillis' attribute.

◆ clear_next_level()

void google_games_api::PlayerExperienceInfo::clear_next_level ( )
inline

Clears the 'nextLevel' attribute.

◆ get_current_experience_points()

int64 google_games_api::PlayerExperienceInfo::get_current_experience_points ( ) const
inline

Get the value of the 'currentExperiencePoints' attribute.

◆ get_current_level()

const PlayerLevel google_games_api::PlayerExperienceInfo::get_current_level ( ) const

Get a reference to the value of the 'currentLevel' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_last_level_up_timestamp_millis()

int64 google_games_api::PlayerExperienceInfo::get_last_level_up_timestamp_millis ( ) const
inline

Get the value of the 'lastLevelUpTimestampMillis' attribute.

◆ get_next_level()

const PlayerLevel google_games_api::PlayerExperienceInfo::get_next_level ( ) const

Get a reference to the value of the 'nextLevel' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_games_api::PlayerExperienceInfo

◆ has_current_experience_points()

bool google_games_api::PlayerExperienceInfo::has_current_experience_points ( ) const
inline

Determine if the 'currentExperiencePoints' attribute was set.

Returns
true if the 'currentExperiencePoints' attribute was set.

◆ has_current_level()

bool google_games_api::PlayerExperienceInfo::has_current_level ( ) const
inline

Determine if the 'currentLevel' attribute was set.

Returns
true if the 'currentLevel' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_last_level_up_timestamp_millis()

bool google_games_api::PlayerExperienceInfo::has_last_level_up_timestamp_millis ( ) const
inline

Determine if the 'lastLevelUpTimestampMillis' attribute was set.

Returns
true if the 'lastLevelUpTimestampMillis' attribute was set.

◆ has_next_level()

bool google_games_api::PlayerExperienceInfo::has_next_level ( ) const
inline

Determine if the 'nextLevel' attribute was set.

Returns
true if the 'nextLevel' attribute was set.

◆ mutable_currentLevel()

PlayerLevel google_games_api::PlayerExperienceInfo::mutable_currentLevel ( )

Gets a reference to a mutable value of the 'currentLevel' property.

The current level of the player.

Returns
The result can be modified to change the attribute value.

◆ mutable_nextLevel()

PlayerLevel google_games_api::PlayerExperienceInfo::mutable_nextLevel ( )

Gets a reference to a mutable value of the 'nextLevel' property.

The next level of the player. If the current level is the maximum level, this should be same as the current level.

Returns
The result can be modified to change the attribute value.

◆ New()

PlayerExperienceInfo * google_games_api::PlayerExperienceInfo::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_current_experience_points()

void google_games_api::PlayerExperienceInfo::set_current_experience_points ( int64  value)
inline

Change the 'currentExperiencePoints' attribute.

The current number of experience points for the player.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

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

Parameters
[in]valueThe new value.

◆ set_last_level_up_timestamp_millis()

void google_games_api::PlayerExperienceInfo::set_last_level_up_timestamp_millis ( int64  value)
inline

Change the 'lastLevelUpTimestampMillis' attribute.

The timestamp when the player was leveled up, in millis since Unix epoch UTC.

Parameters
[in]valueThe new value.

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