Package it.tdlight.jni
Class TdApi.GetChats
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.GetChats
- Enclosing class:
- TdApi
public static class TdApi.GetChats extends TdApi.Function
Returns an ordered list of chats in
a chat list. Chats are sorted by the
pair (chat.position.order, chat.id)
in descending order. (For example, to
get a list of chats from the beginning,
the offsetOrder should be equal to a
biggest signed 64-bit number
9223372036854775807 == 2^63 - 1). For
optimal performance, the number of
returned chats is chosen by TDLib.
Returns Chats
-
Field Summary
Fields Modifier and Type Field Description TdApi.ChatList
chatList
The chat list in which to return chats.static int
CONSTRUCTOR
int
limit
The maximum number of chats to be returned.long
offsetChatId
Chat identifier to return chats from.long
offsetOrder
Chat order to return chats from. -
Constructor Summary
Constructors Constructor Description GetChats()
Returns an ordered list of chats in a chat list.GetChats(TdApi.ChatList chatList, long offsetOrder, long offsetChatId, int limit)
Returns an ordered list of chats in a chat list.GetChats(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatList
The chat list in which to return chats. -
offsetOrder
public long offsetOrderChat order to return chats from. -
offsetChatId
public long offsetChatIdChat identifier to return chats from. -
limit
public int limitThe maximum number of chats to be returned. For optimal performance, the number of returned chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
GetChats
public GetChats()Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. (For example, to get a list of chats from the beginning, the offsetOrder should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1). For optimal performance, the number of returned chats is chosen by TDLib.Returns
Chats
-
GetChats
Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. (For example, to get a list of chats from the beginning, the offsetOrder should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1). For optimal performance, the number of returned chats is chosen by TDLib.Returns
Chats
- Parameters:
chatList
- ChatList The chat list in which to return chats.offsetOrder
- long Chat order to return chats from.offsetChatId
- long Chat identifier to return chats from.limit
- int The maximum number of chats to be returned. For optimal performance, the number of returned chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached.
-
GetChats
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-