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

#include <player_level.h>

Inheritance diagram for google_games_api::PlayerLevel:

Public Member Functions

 PlayerLevel (const Json::Value &storage)
 
 PlayerLevel (Json::Value *storage)
 
virtual ~PlayerLevel ()
 
const StringPiece GetTypeName () const
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_level () const
 
void clear_level ()
 
int32 get_level () const
 
void set_level (int32 value)
 
bool has_max_experience_points () const
 
void clear_max_experience_points ()
 
int64 get_max_experience_points () const
 
void set_max_experience_points (int64 value)
 
bool has_min_experience_points () const
 
void clear_min_experience_points ()
 
int64 get_min_experience_points () const
 
void set_min_experience_points (int64 value)
 

Static Public Member Functions

static PlayerLevelNew ()
 

Detailed Description

This is a JSON template for 1P/3P metadata about a user's level.

Constructor & Destructor Documentation

◆ PlayerLevel() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ PlayerLevel() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~PlayerLevel()

google_games_api::PlayerLevel::~PlayerLevel ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_kind()

void google_games_api::PlayerLevel::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_level()

void google_games_api::PlayerLevel::clear_level ( )
inline

Clears the 'level' attribute.

◆ clear_max_experience_points()

void google_games_api::PlayerLevel::clear_max_experience_points ( )
inline

Clears the 'maxExperiencePoints' attribute.

◆ clear_min_experience_points()

void google_games_api::PlayerLevel::clear_min_experience_points ( )
inline

Clears the 'minExperiencePoints' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_level()

int32 google_games_api::PlayerLevel::get_level ( ) const
inline

Get the value of the 'level' attribute.

◆ get_max_experience_points()

int64 google_games_api::PlayerLevel::get_max_experience_points ( ) const
inline

Get the value of the 'maxExperiencePoints' attribute.

◆ get_min_experience_points()

int64 google_games_api::PlayerLevel::get_min_experience_points ( ) const
inline

Get the value of the 'minExperiencePoints' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_games_api::PlayerLevel

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_level()

bool google_games_api::PlayerLevel::has_level ( ) const
inline

Determine if the 'level' attribute was set.

Returns
true if the 'level' attribute was set.

◆ has_max_experience_points()

bool google_games_api::PlayerLevel::has_max_experience_points ( ) const
inline

Determine if the 'maxExperiencePoints' attribute was set.

Returns
true if the 'maxExperiencePoints' attribute was set.

◆ has_min_experience_points()

bool google_games_api::PlayerLevel::has_min_experience_points ( ) const
inline

Determine if the 'minExperiencePoints' attribute was set.

Returns
true if the 'minExperiencePoints' attribute was set.

◆ New()

PlayerLevel * google_games_api::PlayerLevel::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_kind()

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

Change the 'kind' attribute.

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

Parameters
[in]valueThe new value.

◆ set_level()

void google_games_api::PlayerLevel::set_level ( int32  value)
inline

Change the 'level' attribute.

The level for the user.

Parameters
[in]valueThe new value.

◆ set_max_experience_points()

void google_games_api::PlayerLevel::set_max_experience_points ( int64  value)
inline

Change the 'maxExperiencePoints' attribute.

The maximum experience points for this level.

Parameters
[in]valueThe new value.

◆ set_min_experience_points()

void google_games_api::PlayerLevel::set_min_experience_points ( int64  value)
inline

Change the 'minExperiencePoints' attribute.

The minimum experience points for this level.

Parameters
[in]valueThe new value.

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