Class: Google::Apis::GamesV1::JoinRoomRequest

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 a join room request.

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) ⇒ JoinRoomRequest

Returns a new instance of JoinRoomRequest.


3399
3400
3401
# File 'generated/google/apis/games_v1/classes.rb', line 3399

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

Instance Attribute Details

#capabilitiesArray<String>

The capabilities that this client supports for realtime communication. Corresponds to the JSON property capabilities

Returns:

  • (Array<String>)

3381
3382
3383
# File 'generated/google/apis/games_v1/classes.rb', line 3381

def capabilities
  @capabilities
end

#client_addressGoogle::Apis::GamesV1::RoomClientAddress

This is a JSON template for the client address when setting up a room. Corresponds to the JSON property clientAddress


3386
3387
3388
# File 'generated/google/apis/games_v1/classes.rb', line 3386

def client_address
  @client_address
end

#kindString

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

Returns:

  • (String)

3392
3393
3394
# File 'generated/google/apis/games_v1/classes.rb', line 3392

def kind
  @kind
end

#network_diagnosticsGoogle::Apis::GamesV1::NetworkDiagnostics

This is a JSON template for network diagnostics reported for a client. Corresponds to the JSON property networkDiagnostics


3397
3398
3399
# File 'generated/google/apis/games_v1/classes.rb', line 3397

def network_diagnostics
  @network_diagnostics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3404
3405
3406
3407
3408
3409
# File 'generated/google/apis/games_v1/classes.rb', line 3404

def update!(**args)
  @capabilities = args[:capabilities] if args.key?(:capabilities)
  @client_address = args[:client_address] if args.key?(:client_address)
  @kind = args[:kind] if args.key?(:kind)
  @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics)
end