ForumTopic class final

Describes a forum topic

Inheritance

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})
Describes a forum topic
const
ForumTopic.fromJson(Map<String, dynamic> json)
Parses a ForumTopic from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
draftMessage → DraftMessage?
A draft of a message in the topic; may be null if none
final
extra → dynamic
"@extra" of the request this object answers.
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
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.