Class: TD::Types::Call

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/call.rb

Overview

Describes a call.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#idInteger

Call identifier, not persistent.

Returns:

  • (Integer)

    the current value of id



9
10
11
# File 'lib/tdlib/types/call.rb', line 9

def id
  @id
end

#is_outgoingBoolean

True, if the call is outgoing.

Returns:

  • (Boolean)

    the current value of is_outgoing



9
10
11
# File 'lib/tdlib/types/call.rb', line 9

def is_outgoing
  @is_outgoing
end

#is_videoBoolean

True, if the call is a video call.

Returns:

  • (Boolean)

    the current value of is_video



9
10
11
# File 'lib/tdlib/types/call.rb', line 9

def is_video
  @is_video
end

#stateTD::Types::CallState

Call state.

Returns:



9
10
11
# File 'lib/tdlib/types/call.rb', line 9

def state
  @state
end

#user_idInteger

Peer user identifier.

Returns:

  • (Integer)

    the current value of user_id



9
10
11
# File 'lib/tdlib/types/call.rb', line 9

def user_id
  @user_id
end