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

#include <player_event.h>

Inheritance diagram for google_games_api::PlayerEvent:

Public Member Functions

 PlayerEvent (const Json::Value &storage)
 
 PlayerEvent (Json::Value *storage)
 
virtual ~PlayerEvent ()
 
const StringPiece GetTypeName () const
 
bool has_definition_id () const
 
void clear_definition_id ()
 
const StringPiece get_definition_id () const
 
void set_definition_id (const StringPiece &value)
 
bool has_formatted_num_events () const
 
void clear_formatted_num_events ()
 
const StringPiece get_formatted_num_events () const
 
void set_formatted_num_events (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_num_events () const
 
void clear_num_events ()
 
int64 get_num_events () const
 
void set_num_events (int64 value)
 
bool has_player_id () const
 
void clear_player_id ()
 
const StringPiece get_player_id () const
 
void set_player_id (const StringPiece &value)
 

Static Public Member Functions

static PlayerEventNew ()
 

Detailed Description

This is a JSON template for an event status resource.

Constructor & Destructor Documentation

◆ PlayerEvent() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ PlayerEvent() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~PlayerEvent()

google_games_api::PlayerEvent::~PlayerEvent ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_definition_id()

void google_games_api::PlayerEvent::clear_definition_id ( )
inline

Clears the 'definitionId' attribute.

◆ clear_formatted_num_events()

void google_games_api::PlayerEvent::clear_formatted_num_events ( )
inline

Clears the 'formattedNumEvents' attribute.

◆ clear_kind()

void google_games_api::PlayerEvent::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_num_events()

void google_games_api::PlayerEvent::clear_num_events ( )
inline

Clears the 'numEvents' attribute.

◆ clear_player_id()

void google_games_api::PlayerEvent::clear_player_id ( )
inline

Clears the 'playerId' attribute.

◆ get_definition_id()

const StringPiece google_games_api::PlayerEvent::get_definition_id ( ) const
inline

Get the value of the 'definitionId' attribute.

◆ get_formatted_num_events()

const StringPiece google_games_api::PlayerEvent::get_formatted_num_events ( ) const
inline

Get the value of the 'formattedNumEvents' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_num_events()

int64 google_games_api::PlayerEvent::get_num_events ( ) const
inline

Get the value of the 'numEvents' attribute.

◆ get_player_id()

const StringPiece google_games_api::PlayerEvent::get_player_id ( ) const
inline

Get the value of the 'playerId' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_games_api::PlayerEvent

◆ has_definition_id()

bool google_games_api::PlayerEvent::has_definition_id ( ) const
inline

Determine if the 'definitionId' attribute was set.

Returns
true if the 'definitionId' attribute was set.

◆ has_formatted_num_events()

bool google_games_api::PlayerEvent::has_formatted_num_events ( ) const
inline

Determine if the 'formattedNumEvents' attribute was set.

Returns
true if the 'formattedNumEvents' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_num_events()

bool google_games_api::PlayerEvent::has_num_events ( ) const
inline

Determine if the 'numEvents' attribute was set.

Returns
true if the 'numEvents' attribute was set.

◆ has_player_id()

bool google_games_api::PlayerEvent::has_player_id ( ) const
inline

Determine if the 'playerId' attribute was set.

Returns
true if the 'playerId' attribute was set.

◆ New()

PlayerEvent * google_games_api::PlayerEvent::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_definition_id()

void google_games_api::PlayerEvent::set_definition_id ( const StringPiece &  value)
inline

Change the 'definitionId' attribute.

The ID of the event definition.

Parameters
[in]valueThe new value.

◆ set_formatted_num_events()

void google_games_api::PlayerEvent::set_formatted_num_events ( const StringPiece &  value)
inline

Change the 'formattedNumEvents' attribute.

The current number of times this event has occurred, as a string. The formatting of this string depends on the configuration of your event in the Play Games Developer Console.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

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

Parameters
[in]valueThe new value.

◆ set_num_events()

void google_games_api::PlayerEvent::set_num_events ( int64  value)
inline

Change the 'numEvents' attribute.

The current number of times this event has occurred.

Parameters
[in]valueThe new value.

◆ set_player_id()

void google_games_api::PlayerEvent::set_player_id ( const StringPiece &  value)
inline

Change the 'playerId' attribute.

The ID of the player.

Parameters
[in]valueThe new value.

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