Class: TD::Types::CallState::Ready

Inherits:
TD::Types::CallState show all
Defined in:
lib/tdlib/types/call_state/ready.rb

Overview

The call is ready to use.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#allow_p2p ⇒ Boolean

True, if peer-to-peer connection is allowed by users privacy settings.

Returns:

  • (Boolean) —

    the current value of allow_p2p



11
12
13
# File 'lib/tdlib/types/call_state/ready.rb', line 11

def allow_p2p
  @allow_p2p
end

#config ⇒ TD::Types::String

A JSON-encoded call config.

Returns:

  • (TD::Types::String) —

    the current value of config



11
12
13
# File 'lib/tdlib/types/call_state/ready.rb', line 11

def config
  @config
end

#custom_parameters ⇒ TD::Types::String

Custom JSON-encoded call parameters to be passed to tgcalls.

Returns:

  • (TD::Types::String) —

    the current value of custom_parameters



11
12
13
# File 'lib/tdlib/types/call_state/ready.rb', line 11

def custom_parameters
  @custom_parameters
end

#emojis ⇒ Array<TD::Types::String>

Encryption key fingerprint represented as 4 emoji.

Returns:

  • (Array<TD::Types::String>) —

    the current value of emojis



11
12
13
# File 'lib/tdlib/types/call_state/ready.rb', line 11

def emojis
  @emojis
end

#encryption_key ⇒ String

Call encryption key.

Returns:

  • (String) —

    the current value of encryption_key



11
12
13
# File 'lib/tdlib/types/call_state/ready.rb', line 11

def encryption_key
  @encryption_key
end

#protocol ⇒ TD::Types::CallProtocol

Call protocols supported by the other call participant.

Returns:



11
12
13
# File 'lib/tdlib/types/call_state/ready.rb', line 11

def protocol
  @protocol
end

#servers ⇒ Array<TD::Types::CallServer>

List of available call servers.

Returns:



11
12
13
# File 'lib/tdlib/types/call_state/ready.rb', line 11

def servers
  @servers
end