Class: Google::Apis::GamesV1::RoomLeaveDiagnostics

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RoomLeaveDiagnostics

Returns a new instance of RoomLeaveDiagnostics.



3189
3190
3191
# File 'generated/google/apis/games_v1/classes.rb', line 3189

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#android_network_subtypeFixnum

Android network subtype. http://developer.android.com/reference/android/net/ NetworkInfo.html#getSubtype() Corresponds to the JSON property androidNetworkSubtype

Returns:

  • (Fixnum)


3142
3143
3144
# File 'generated/google/apis/games_v1/classes.rb', line 3142

def android_network_subtype
  @android_network_subtype
end

#android_network_typeFixnum

Android network type. http://developer.android.com/reference/android/net/ NetworkInfo.html#getType() Corresponds to the JSON property androidNetworkType

Returns:

  • (Fixnum)


3148
3149
3150
# File 'generated/google/apis/games_v1/classes.rb', line 3148

def android_network_type
  @android_network_type
end

#ios_network_typeFixnum

iOS network type as defined in Reachability.h. Corresponds to the JSON property iosNetworkType

Returns:

  • (Fixnum)


3153
3154
3155
# File 'generated/google/apis/games_v1/classes.rb', line 3153

def ios_network_type
  @ios_network_type
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveDiagnostics. Corresponds to the JSON property kind

Returns:

  • (String)


3159
3160
3161
# File 'generated/google/apis/games_v1/classes.rb', line 3159

def kind
  @kind
end

#network_operator_codeString

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

Returns:

  • (String)


3167
3168
3169
# File 'generated/google/apis/games_v1/classes.rb', line 3167

def network_operator_code
  @network_operator_code
end

#network_operator_nameString

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

Returns:

  • (String)


3176
3177
3178
# File 'generated/google/apis/games_v1/classes.rb', line 3176

def network_operator_name
  @network_operator_name
end

#peer_sessionArray<Google::Apis::GamesV1::PeerSessionDiagnostics>

Diagnostics about all peer sessions. Corresponds to the JSON property peerSession



3181
3182
3183
# File 'generated/google/apis/games_v1/classes.rb', line 3181

def peer_session
  @peer_session
end

#sockets_usedBoolean Also known as: sockets_used?

Whether or not sockets were used. Corresponds to the JSON property socketsUsed

Returns:

  • (Boolean)


3186
3187
3188
# File 'generated/google/apis/games_v1/classes.rb', line 3186

def sockets_used
  @sockets_used
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
# File 'generated/google/apis/games_v1/classes.rb', line 3194

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