Class: TD::Types::ChatPosition

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

Overview

Describes a position of a chat in a chat list.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_pinnedBoolean

True, if the chat is pinned in the chat list.

Returns:

  • (Boolean)

    the current value of is_pinned



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

def is_pinned
  @is_pinned
end

#listTD::Types::ChatList

The chat list.

Returns:



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

def list
  @list
end

#orderInteger

A parameter used to determine order of the chat in the chat list. Chats must be sorted by the pair (order, chat.id) in descending order.

Returns:

  • (Integer)

    the current value of order



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

def order
  @order
end

#sourceTD::Types::ChatSource?

Source of the chat in the chat list; may be null.

Returns:



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

def source
  @source
end