java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ForumTopic
- Enclosing class:
- TdApi
Describes a forum topic.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.A draft of a message in the topic; may be null if none.Basic information about the topic.boolean
True, if the topic is pinned in the topic list.Last message in the topic; may be null if unknown.long
Identifier of the last read incoming message.long
Identifier of the last read outgoing message.Notification settings for the topic.int
Number of unread messages in the topic.int
Number of unread messages with a mention/reply in the topic.int
Number of messages with unread reactions in the topic. -
Constructor Summary
ConstructorDescriptionDescribes a forum topic.ForumTopic
(TdApi.ForumTopicInfo info, TdApi.Message lastMessage, boolean isPinned, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.DraftMessage draftMessage) Describes a forum topic.ForumTopic
(DataInput input) Describes a forum topic. -
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
-
info
Basic information about the topic. -
lastMessage
Last message in the topic; may be null if unknown. -
isPinned
public boolean isPinnedTrue, if the topic is pinned in the topic list. -
unreadCount
public int unreadCountNumber of unread messages in the topic. -
lastReadInboxMessageId
public long lastReadInboxMessageIdIdentifier of the last read incoming message. -
lastReadOutboxMessageId
public long lastReadOutboxMessageIdIdentifier of the last read outgoing message. -
unreadMentionCount
public int unreadMentionCountNumber of unread messages with a mention/reply in the topic. -
unreadReactionCount
public int unreadReactionCountNumber of messages with unread reactions in the topic. -
notificationSettings
Notification settings for the topic. -
draftMessage
A draft of a message in the topic; may be null if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ForumTopic
public ForumTopic()Describes a forum topic. -
ForumTopic
public ForumTopic(TdApi.ForumTopicInfo info, TdApi.Message lastMessage, boolean isPinned, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.DraftMessage draftMessage) Describes a forum topic.- Parameters:
info
- Basic information about the topic.lastMessage
- Last message in the topic; may be null if unknown.isPinned
- True, if the topic is pinned in the topic list.unreadCount
- Number of unread messages in the topic.lastReadInboxMessageId
- Identifier of the last read incoming message.lastReadOutboxMessageId
- Identifier of the last read outgoing message.unreadMentionCount
- Number of unread messages with a mention/reply in the topic.unreadReactionCount
- Number of messages with unread reactions in the topic.notificationSettings
- Notification settings for the topic.draftMessage
- A draft of a message in the topic; may be null if none.
-
ForumTopic
Describes a forum topic.- 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()
-