Class: Google::Apis::GamesV1::RoomLeaveDiagnostics
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::RoomLeaveDiagnostics
 
- 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 room leave diagnostics.
Instance Attribute Summary collapse
- 
  
    
      #android_network_subtype  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Android network subtype. 
- 
  
    
      #android_network_type  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    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. 
- 
  
    
      #peer_session  ⇒ Array<Google::Apis::GamesV1::PeerSessionDiagnostics> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Diagnostics about all peer sessions. 
- 
  
    
      #sockets_used  ⇒ Boolean 
    
    
      (also: #sockets_used?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether or not sockets were used. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RoomLeaveDiagnostics 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RoomLeaveDiagnostics. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RoomLeaveDiagnostics
Returns a new instance of RoomLeaveDiagnostics
| 3469 3470 3471 | # File 'generated/google/apis/games_v1/classes.rb', line 3469 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#android_network_subtype ⇒ Fixnum
Android network subtype. http://developer.android.com/reference/android/net/
NetworkInfo.html#getSubtype()
Corresponds to the JSON property androidNetworkSubtype
| 3422 3423 3424 | # File 'generated/google/apis/games_v1/classes.rb', line 3422 def android_network_subtype @android_network_subtype end | 
#android_network_type ⇒ Fixnum
Android network type. http://developer.android.com/reference/android/net/
NetworkInfo.html#getType()
Corresponds to the JSON property androidNetworkType
| 3428 3429 3430 | # File 'generated/google/apis/games_v1/classes.rb', line 3428 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
| 3433 3434 3435 | # File 'generated/google/apis/games_v1/classes.rb', line 3433 def ios_network_type @ios_network_type end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#roomLeaveDiagnostics.
Corresponds to the JSON property kind
| 3439 3440 3441 | # File 'generated/google/apis/games_v1/classes.rb', line 3439 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
| 3447 3448 3449 | # File 'generated/google/apis/games_v1/classes.rb', line 3447 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
| 3456 3457 3458 | # File 'generated/google/apis/games_v1/classes.rb', line 3456 def network_operator_name @network_operator_name end | 
#peer_session ⇒ Array<Google::Apis::GamesV1::PeerSessionDiagnostics>
Diagnostics about all peer sessions.
Corresponds to the JSON property peerSession
| 3461 3462 3463 | # File 'generated/google/apis/games_v1/classes.rb', line 3461 def peer_session @peer_session end | 
#sockets_used ⇒ Boolean Also known as: sockets_used?
Whether or not sockets were used.
Corresponds to the JSON property socketsUsed
| 3466 3467 3468 | # File 'generated/google/apis/games_v1/classes.rb', line 3466 def sockets_used @sockets_used end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 | # File 'generated/google/apis/games_v1/classes.rb', line 3474 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) @peer_session = args[:peer_session] if args.key?(:peer_session) @sockets_used = args[:sockets_used] if args.key?(:sockets_used) end |