public static class TdApi.ChatPosition extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isPinned
True, if the chat is pinned in the chat list.
|
TdApi.ChatList |
list
The chat list.
|
long |
order
A parameter used to determine order of the chat in the chat list.
|
TdApi.ChatSource |
source
Source of the chat in the chat list; may be null.
|
Constructor and Description |
---|
ChatPosition()
Describes a position of a chat in a chat list.
|
ChatPosition(TdApi.ChatList list,
long order,
boolean isPinned,
TdApi.ChatSource source)
Describes a position of a chat in a chat list.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.ChatList list
public long order
public boolean isPinned
@Nullable public TdApi.ChatSource source
public static final int CONSTRUCTOR
public ChatPosition()
public ChatPosition(TdApi.ChatList list, long order, boolean isPinned, TdApi.ChatSource source)
list
- The chat list.order
- 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.isPinned
- True, if the chat is pinned in the chat list.source
- Source of the chat in the chat list; may be null.public int getConstructor()
getConstructor
in class TdApi.Object