Class: Google::Apis::GamesV1::NetworkDiagnostics
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::NetworkDiagnostics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
This is a JSON template for network diagnostics reported for a client.
Instance Attribute Summary collapse
-
#android_network_subtype ⇒ Fixnum
The Android network subtype.
-
#android_network_type ⇒ Fixnum
The Android network type.
-
#ios_network_type ⇒ Fixnum
iOS network type as defined in Reachability.h.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#network_operator_code ⇒ String
The MCC+MNC code for the client's network connection.
-
#network_operator_name ⇒ String
The name of the carrier of the client's network connection.
-
#registration_latency_millis ⇒ Fixnum
The amount of time in milliseconds it took for the client to establish a connection with the XMPP server.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkDiagnostics
constructor
A new instance of NetworkDiagnostics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NetworkDiagnostics
Returns a new instance of NetworkDiagnostics
1774 1775 1776 |
# File 'generated/google/apis/games_v1/classes.rb', line 1774 def initialize(**args) update!(**args) end |
Instance Attribute Details
#android_network_subtype ⇒ Fixnum
The Android network subtype.
Corresponds to the JSON property androidNetworkSubtype
1733 1734 1735 |
# File 'generated/google/apis/games_v1/classes.rb', line 1733 def android_network_subtype @android_network_subtype end |
#android_network_type ⇒ Fixnum
The Android network type.
Corresponds to the JSON property androidNetworkType
1738 1739 1740 |
# File 'generated/google/apis/games_v1/classes.rb', line 1738 def android_network_type @android_network_type end |
#ios_network_type ⇒ Fixnum
iOS network type as defined in Reachability.h.
Corresponds to the JSON property iosNetworkType
1743 1744 1745 |
# File 'generated/google/apis/games_v1/classes.rb', line 1743 def ios_network_type @ios_network_type end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#networkDiagnostics.
Corresponds to the JSON property kind
1749 1750 1751 |
# File 'generated/google/apis/games_v1/classes.rb', line 1749 def kind @kind end |
#network_operator_code ⇒ String
The MCC+MNC code for the client's network connection. On Android: http://
developer.android.com/reference/android/telephony/TelephonyManager.html#
getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/
documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
Corresponds to the JSON property networkOperatorCode
1757 1758 1759 |
# File 'generated/google/apis/games_v1/classes.rb', line 1757 def network_operator_code @network_operator_code end |
#network_operator_name ⇒ String
The name of the carrier of the client's network connection. On Android: http://
developer.android.com/reference/android/telephony/TelephonyManager.html#
getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/
documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#/
/apple_ref/occ/instp/CTCarrier/carrierName
Corresponds to the JSON property networkOperatorName
1766 1767 1768 |
# File 'generated/google/apis/games_v1/classes.rb', line 1766 def network_operator_name @network_operator_name end |
#registration_latency_millis ⇒ Fixnum
The amount of time in milliseconds it took for the client to establish a
connection with the XMPP server.
Corresponds to the JSON property registrationLatencyMillis
1772 1773 1774 |
# File 'generated/google/apis/games_v1/classes.rb', line 1772 def registration_latency_millis @registration_latency_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1779 1780 1781 1782 1783 1784 1785 1786 1787 |
# File 'generated/google/apis/games_v1/classes.rb', line 1779 def update!(**args) @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype) @android_network_type = args[:android_network_type] if args.key?(:android_network_type) @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type) @kind = args[:kind] if args.key?(:kind) @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code) @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name) @registration_latency_millis = args[:registration_latency_millis] if args.key?(:registration_latency_millis) end |