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

#include <push_token.h>

Inheritance diagram for google_games_api::PushToken:

Public Member Functions

 PushToken (const Json::Value &storage)
 
 PushToken (Json::Value *storage)
 
virtual ~PushToken ()
 
const StringPiece GetTypeName () const
 
bool has_client_revision () const
 
void clear_client_revision ()
 
const StringPiece get_client_revision () const
 
void set_client_revision (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
const PushTokenId get_id () const
 
PushTokenId mutable_id ()
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_language () const
 
void clear_language ()
 
const StringPiece get_language () const
 
void set_language (const StringPiece &value)
 

Static Public Member Functions

static PushTokenNew ()
 

Detailed Description

This is a JSON template for a push token resource.

Constructor & Destructor Documentation

◆ PushToken() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ PushToken() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~PushToken()

google_games_api::PushToken::~PushToken ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_client_revision()

void google_games_api::PushToken::clear_client_revision ( )
inline

Clears the 'clientRevision' attribute.

◆ clear_id()

void google_games_api::PushToken::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_games_api::PushToken::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_language()

void google_games_api::PushToken::clear_language ( )
inline

Clears the 'language' attribute.

◆ get_client_revision()

const StringPiece google_games_api::PushToken::get_client_revision ( ) const
inline

Get the value of the 'clientRevision' attribute.

◆ get_id()

const PushTokenId google_games_api::PushToken::get_id ( ) const

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

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_language()

const StringPiece google_games_api::PushToken::get_language ( ) const
inline

Get the value of the 'language' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_games_api::PushToken

◆ has_client_revision()

bool google_games_api::PushToken::has_client_revision ( ) const
inline

Determine if the 'clientRevision' attribute was set.

Returns
true if the 'clientRevision' attribute was set.

◆ has_id()

bool google_games_api::PushToken::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_language()

bool google_games_api::PushToken::has_language ( ) const
inline

Determine if the 'language' attribute was set.

Returns
true if the 'language' attribute was set.

◆ mutable_id()

PushTokenId google_games_api::PushToken::mutable_id ( )

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

Unique identifier for this push token.

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

◆ New()

PushToken * google_games_api::PushToken::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_client_revision()

void google_games_api::PushToken::set_client_revision ( const StringPiece &  value)
inline

Change the 'clientRevision' attribute.

The revision of the client SDK used by your application, in the same format that's used by revisions.check. Used to send backward compatible messages. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are:

  • IOS - Push token is for iOS.
Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

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

Parameters
[in]valueThe new value.

◆ set_language()

void google_games_api::PushToken::set_language ( const StringPiece &  value)
inline

Change the 'language' attribute.

The preferred language for notifications that are sent using this token.

Parameters
[in]valueThe new value.

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