ChatThread class

The message thread class.

Constructors

ChatThread.new({required String threadId, String? threadName, required String? owner, required String messageId, required String parentId, required int membersCount, required int messageCount, required int createAt, ChatMessage? lastMessage})
ChatThread.fromJson(Map map)
factory

Properties

createAt → int
The Unix timestamp when the message thread is created. The unit is millisecond.
final
hashCode → int
The hash code for this object.
no setterinherited
lastMessage → ChatMessage?
The last reply in the message thread. If it is empty, the last message is withdrawn.
final
membersCount → int
The count of members in the message thread.
final
messageCount → int
The count of messages in the message thread.
final
messageId → String
The ID of the parent message of the message thread.
final
owner → String?
The creator of the message thread.
final
parentId → String
The group ID where the message thread belongs.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
threadId → String
The message thread ID.
final
threadName → String?
The name of the message thread.
final

Methods

copyWith({String? threadId, String? threadName, String? owner, String? messageId, String? parentId, int? membersCount, int? messageCount, int? createAt, ChatMessage? lastMessage}) → ChatThread
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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