Package org.drinkless.tdlib
Class TdApi.ForumTopic
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ForumTopic
- Enclosing class:
- TdApi
Describes a forum topic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.A draft of a message in the topic; may be null if none.Basic information about the topic.booleanTrue, if the topic is pinned in the topic list.Last message in the topic; may be null if unknown.longIdentifier of the last read incoming message.longIdentifier of the last read outgoing message.Notification settings for the topic.longA parameter used to determine order of the topic in the topic list.intNumber of unread messages in the topic.intNumber of unread messages with a mention/reply in the topic.intNumber of messages with unread reactions in the topic. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes a forum topic.ForumTopic(TdApi.ForumTopicInfo info, TdApi.Message lastMessage, long order, boolean isPinned, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.DraftMessage draftMessage) Describes a forum topic. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
info
Basic information about the topic. -
lastMessage
Last message in the topic; may be null if unknown. -
order
public long orderA parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order. -
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, long order, 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.order- A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-