java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageThreadInfo
- Enclosing class:
- TdApi
Contains information about a message thread.
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat to which the message thread belongs.static final int
Identifier uniquely determining type of the object.A draft of a message in the message thread; may be null if none.The messages from which the thread starts.long
Message thread identifier, unique within the chat.Information about the message thread; may be null for forum topic threads.int
Approximate number of unread messages in the message thread. -
Constructor Summary
ConstructorDescriptionContains information about a message thread.MessageThreadInfo
(long chatId, long messageThreadId, TdApi.MessageReplyInfo replyInfo, int unreadMessageCount, TdApi.Message[] messages, TdApi.DraftMessage draftMessage) Contains information about a message thread.MessageThreadInfo
(DataInput input) Contains information about a message thread. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the message thread belongs. -
messageThreadId
public long messageThreadIdMessage thread identifier, unique within the chat. -
replyInfo
Information about the message thread; may be null for forum topic threads. -
unreadMessageCount
public int unreadMessageCountApproximate number of unread messages in the message thread. -
messages
The messages from which the thread starts. The messages are returned in a reverse chronological order (i.e., in order of decreasing messageId). -
draftMessage
A draft of a message in the message thread; may be null if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageThreadInfo
public MessageThreadInfo()Contains information about a message thread. -
MessageThreadInfo
public MessageThreadInfo(long chatId, long messageThreadId, TdApi.MessageReplyInfo replyInfo, int unreadMessageCount, TdApi.Message[] messages, TdApi.DraftMessage draftMessage) Contains information about a message thread.- Parameters:
chatId
- Identifier of the chat to which the message thread belongs.messageThreadId
- Message thread identifier, unique within the chat.replyInfo
- Information about the message thread; may be null for forum topic threads.unreadMessageCount
- Approximate number of unread messages in the message thread.messages
- The messages from which the thread starts. The messages are returned in a reverse chronological order (i.e., in order of decreasing messageId).draftMessage
- A draft of a message in the message thread; may be null if none.
-
MessageThreadInfo
Contains information about a message thread.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-