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

#include <network_diagnostics.h>

Inheritance diagram for google_games_api::NetworkDiagnostics:

Public Member Functions

 NetworkDiagnostics (const Json::Value &storage)
 
 NetworkDiagnostics (Json::Value *storage)
 
virtual ~NetworkDiagnostics ()
 
const StringPiece GetTypeName () const
 
bool has_android_network_subtype () const
 
void clear_android_network_subtype ()
 
int32 get_android_network_subtype () const
 
void set_android_network_subtype (int32 value)
 
bool has_android_network_type () const
 
void clear_android_network_type ()
 
int32 get_android_network_type () const
 
void set_android_network_type (int32 value)
 
bool has_ios_network_type () const
 
void clear_ios_network_type ()
 
int32 get_ios_network_type () const
 
void set_ios_network_type (int32 value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_network_operator_code () const
 
void clear_network_operator_code ()
 
const StringPiece get_network_operator_code () const
 
void set_network_operator_code (const StringPiece &value)
 
bool has_network_operator_name () const
 
void clear_network_operator_name ()
 
const StringPiece get_network_operator_name () const
 
void set_network_operator_name (const StringPiece &value)
 
bool has_registration_latency_millis () const
 
void clear_registration_latency_millis ()
 
int32 get_registration_latency_millis () const
 
void set_registration_latency_millis (int32 value)
 

Static Public Member Functions

static NetworkDiagnosticsNew ()
 

Detailed Description

This is a JSON template for network diagnostics reported for a client.

Constructor & Destructor Documentation

◆ NetworkDiagnostics() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ NetworkDiagnostics() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~NetworkDiagnostics()

google_games_api::NetworkDiagnostics::~NetworkDiagnostics ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_android_network_subtype()

void google_games_api::NetworkDiagnostics::clear_android_network_subtype ( )
inline

Clears the 'androidNetworkSubtype' attribute.

◆ clear_android_network_type()

void google_games_api::NetworkDiagnostics::clear_android_network_type ( )
inline

Clears the 'androidNetworkType' attribute.

◆ clear_ios_network_type()

void google_games_api::NetworkDiagnostics::clear_ios_network_type ( )
inline

Clears the 'iosNetworkType' attribute.

◆ clear_kind()

void google_games_api::NetworkDiagnostics::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_network_operator_code()

void google_games_api::NetworkDiagnostics::clear_network_operator_code ( )
inline

Clears the 'networkOperatorCode' attribute.

◆ clear_network_operator_name()

void google_games_api::NetworkDiagnostics::clear_network_operator_name ( )
inline

Clears the 'networkOperatorName' attribute.

◆ clear_registration_latency_millis()

void google_games_api::NetworkDiagnostics::clear_registration_latency_millis ( )
inline

Clears the 'registrationLatencyMillis' attribute.

◆ get_android_network_subtype()

int32 google_games_api::NetworkDiagnostics::get_android_network_subtype ( ) const
inline

Get the value of the 'androidNetworkSubtype' attribute.

◆ get_android_network_type()

int32 google_games_api::NetworkDiagnostics::get_android_network_type ( ) const
inline

Get the value of the 'androidNetworkType' attribute.

◆ get_ios_network_type()

int32 google_games_api::NetworkDiagnostics::get_ios_network_type ( ) const
inline

Get the value of the 'iosNetworkType' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_network_operator_code()

const StringPiece google_games_api::NetworkDiagnostics::get_network_operator_code ( ) const
inline

Get the value of the 'networkOperatorCode' attribute.

◆ get_network_operator_name()

const StringPiece google_games_api::NetworkDiagnostics::get_network_operator_name ( ) const
inline

Get the value of the 'networkOperatorName' attribute.

◆ get_registration_latency_millis()

int32 google_games_api::NetworkDiagnostics::get_registration_latency_millis ( ) const
inline

Get the value of the 'registrationLatencyMillis' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_games_api::NetworkDiagnostics

◆ has_android_network_subtype()

bool google_games_api::NetworkDiagnostics::has_android_network_subtype ( ) const
inline

Determine if the 'androidNetworkSubtype' attribute was set.

Returns
true if the 'androidNetworkSubtype' attribute was set.

◆ has_android_network_type()

bool google_games_api::NetworkDiagnostics::has_android_network_type ( ) const
inline

Determine if the 'androidNetworkType' attribute was set.

Returns
true if the 'androidNetworkType' attribute was set.

◆ has_ios_network_type()

bool google_games_api::NetworkDiagnostics::has_ios_network_type ( ) const
inline

Determine if the 'iosNetworkType' attribute was set.

Returns
true if the 'iosNetworkType' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_network_operator_code()

bool google_games_api::NetworkDiagnostics::has_network_operator_code ( ) const
inline

Determine if the 'networkOperatorCode' attribute was set.

Returns
true if the 'networkOperatorCode' attribute was set.

◆ has_network_operator_name()

bool google_games_api::NetworkDiagnostics::has_network_operator_name ( ) const
inline

Determine if the 'networkOperatorName' attribute was set.

Returns
true if the 'networkOperatorName' attribute was set.

◆ has_registration_latency_millis()

bool google_games_api::NetworkDiagnostics::has_registration_latency_millis ( ) const
inline

Determine if the 'registrationLatencyMillis' attribute was set.

Returns
true if the 'registrationLatencyMillis' attribute was set.

◆ New()

NetworkDiagnostics * google_games_api::NetworkDiagnostics::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_android_network_subtype()

void google_games_api::NetworkDiagnostics::set_android_network_subtype ( int32  value)
inline

Change the 'androidNetworkSubtype' attribute.

The Android network subtype.

Parameters
[in]valueThe new value.

◆ set_android_network_type()

void google_games_api::NetworkDiagnostics::set_android_network_type ( int32  value)
inline

Change the 'androidNetworkType' attribute.

The Android network type.

Parameters
[in]valueThe new value.

◆ set_ios_network_type()

void google_games_api::NetworkDiagnostics::set_ios_network_type ( int32  value)
inline

Change the 'iosNetworkType' attribute.

iOS network type as defined in Reachability.h.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

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

Parameters
[in]valueThe new value.

◆ set_network_operator_code()

void google_games_api::NetworkDiagnostics::set_network_operator_code ( const StringPiece &  value)
inline

Change the 'networkOperatorCode' attribute.

The MCC+MNC code for the client's network connection. On Android: http://de veloper.android.com/reference/android/telephony/TelephonyManager.html::getNe tworkOperator() On iOS, see: https://developer.apple.com/library/ios/docume ntation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html.

Parameters
[in]valueThe new value.

◆ set_network_operator_name()

void google_games_api::NetworkDiagnostics::set_network_operator_name ( const StringPiece &  value)
inline

Change the 'networkOperatorName' attribute.

The name of the carrier of the client's network connection. On Android: htt p://developer.android.com/reference/android/telephony/TelephonyManager.html #getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/d ocumentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.htm l#//apple_ref/occ/instp/CTCarrier/carrierName.

Parameters
[in]valueThe new value.

◆ set_registration_latency_millis()

void google_games_api::NetworkDiagnostics::set_registration_latency_millis ( int32  value)
inline

Change the 'registrationLatencyMillis' attribute.

The amount of time in milliseconds it took for the client to establish a connection with the XMPP server.

Parameters
[in]valueThe new value.

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