ForumTopic class final
ForumTopic (forumTopic) - basic class
Describes a forum topic.
- info: Basic information about the topic.
- lastMessage: Last message in the topic; may be null if unknown (optional).
- 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 (optional).
Constructors
- ForumTopic({required ForumTopicInfo info, Message? lastMessage, required bool isPinned, required int unreadCount, required int lastReadInboxMessageId, required int lastReadOutboxMessageId, required int unreadMentionCount, required int unreadReactionCount, required ChatNotificationSettings notificationSettings, DraftMessage? draftMessage, dynamic extra, int? clientId})
-
ForumTopic (forumTopic) - basic class
const
-
ForumTopic.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- clientId → int?
-
clientId client identifier
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- draftMessage → DraftMessage?
-
A draft of a message in the topic; may be null if none
final
- extra → dynamic
-
extra callback sign
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → ForumTopicInfo
-
Basic information about the topic
final
- isPinned → bool
-
True, if the topic is pinned in the topic list
final
- lastMessage → Message?
-
Last message in the topic; may be null if unknown
final
- lastReadInboxMessageId → int
-
Identifier of the last read incoming message
final
- lastReadOutboxMessageId → int
-
Identifier of the last read outgoing message
final
- notificationSettings → ChatNotificationSettings
-
Notification settings for the topic
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unreadCount → int
-
Number of unread messages in the topic
final
- unreadMentionCount → int
-
Number of unread messages with a mention/reply in the topic
final
- unreadReactionCount → int
-
Number of messages with unread reactions in the topic
final
Methods
-
copyWith(
{ForumTopicInfo? info, Message? lastMessage, bool? isPinned, int? unreadCount, int? lastReadInboxMessageId, int? lastReadOutboxMessageId, int? unreadMentionCount, int? unreadReactionCount, ChatNotificationSettings? notificationSettings, DraftMessage? draftMessage, dynamic extra, int? clientId}) → ForumTopic - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type