#include <player_event.h>
This is a JSON template for an event status resource.
◆ PlayerEvent() [1/2]
google_games_api::PlayerEvent::PlayerEvent |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The 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] | storage | The underlying data storage for this instance. |
◆ ~PlayerEvent()
google_games_api::PlayerEvent::~PlayerEvent |
( |
| ) |
|
|
virtual |
◆ 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 |
◆ 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()
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
-
◆ 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
-
◆ 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
-
◆ 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
-
◆ 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
-
The documentation for this class was generated from the following files: