MessageThreadInfo class final

MessageThreadInfo (messageThreadInfo) - basic class

Contains information about a message thread.

  • 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 (optional).
  • unreadMessageCount: Approximate number of unread messages in the message thread.
  • messages: The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id).
  • draftMessage: A draft of a message in the message thread; may be null if none (optional).
Inheritance

Constructors

MessageThreadInfo({required int chatId, required int messageThreadId, MessageReplyInfo? replyInfo, required int unreadMessageCount, required List<Message> messages, DraftMessage? draftMessage, dynamic extra, int? clientId})
MessageThreadInfo (messageThreadInfo) - basic class
const
MessageThreadInfo.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

chatId int
Identifier of the chat to which the message thread belongs
final
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 message thread; may be null if none
final
extra → dynamic
extra callback sign
final
hashCode int
The hash code for this object.
no setterinherited
messages List<Message>
The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
final
messageThreadId int
Message thread identifier, unique within the chat
final
replyInfo MessageReplyInfo?
Information about the message thread; may be null for forum topic threads
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unreadMessageCount int
Approximate number of unread messages in the message thread
final

Methods

copyWith({int? chatId, int? messageThreadId, MessageReplyInfo? replyInfo, int? unreadMessageCount, List<Message>? messages, DraftMessage? draftMessage, dynamic extra, int? clientId}) MessageThreadInfo
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