RecentChatData class
Represents the recent chat data.
Constructors
-
RecentChatData({String? contactType, bool? isAdminBlocked, bool? isBlocked, bool? isBlockedMe, bool? isBroadCast, bool? isChatArchived, bool? isPrivateChat, bool? isChatPinned, bool? isConversationUnRead, bool? isGroup, bool? isGroupInOfflineMode, bool? isItSavedContact, bool? isLastMessageRecalledByUser, bool? isLastMessageSentByMe, bool? isMuted, bool? isSelected, String? jid, String? lastMessageContent, String? lastMessageId, String? lastMessageStatus, int? lastMessageTime, String? lastMessageType, String? nickName, String? profileImage, String? profileName, int? unreadMessageCount, String? topicId, List<
MessageMetaData> ? metaData}) - Initializes a new instance of the RecentChatData class.
-
RecentChatData.fromJson(Map<
String, dynamic> json) -
Converts a JSON object into a RecentChatData instance.
factory
Properties
- contactType ↔ String?
-
The type of contact.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAdminBlocked ↔ bool?
-
Indicates whether the user is blocked by the admin.
getter/setter pair
- isBlocked ↔ bool?
-
Indicates whether the user is blocked.
getter/setter pair
- isBlockedMe ↔ bool?
-
Indicates whether the user has blocked the current user.
getter/setter pair
- isBroadCast ↔ bool?
-
Indicates whether the chat is a broadcast.
getter/setter pair
- isChatArchived ↔ bool?
-
Indicates whether the chat is archived.
getter/setter pair
- isChatPinned ↔ bool?
-
Indicates whether the chat is pinned.
getter/setter pair
- isConversationUnRead ↔ bool?
-
Indicates whether the conversation is unread.
getter/setter pair
- isGroup ↔ bool?
-
Indicates whether the chat is a group.
getter/setter pair
- isGroupInOfflineMode ↔ bool?
-
Indicates whether the group is in offline mode.
getter/setter pair
- isItSavedContact ↔ bool?
-
Indicates whether the contact is saved.
getter/setter pair
- isLastMessageRecalledByUser ↔ bool?
-
Indicates whether the last message was recalled by the user.
getter/setter pair
- isLastMessageSentByMe ↔ bool?
-
Indicates whether the last message was sent by the current user.
getter/setter pair
- isMuted ↔ bool?
-
Indicates whether the chat is muted.
getter/setter pair
- isPrivateChat ↔ bool?
-
Indicates whether the chat is private.
getter/setter pair
- isSelected ↔ bool?
-
Indicates whether the chat is selected.
getter/setter pair
- jid ↔ String?
-
The unique identifier of the chat.
getter/setter pair
- lastMessageContent ↔ String?
-
The content of the last message.
getter/setter pair
- lastMessageId ↔ String?
-
The unique identifier of the last message.
getter/setter pair
- lastMessageStatus ↔ String?
-
The status of the last message.
getter/setter pair
- lastMessageTime ↔ int?
-
The time when the last message was sent.
getter/setter pair
- lastMessageType ↔ String?
-
The type of the last message.
getter/setter pair
-
metaData
↔ List<
MessageMetaData> ? -
The metadata of the chat.
getter/setter pair
- nickName ↔ String?
-
The nickname of the user.
getter/setter pair
- profileImage ↔ String?
-
The profile image of the user.
getter/setter pair
- profileName ↔ String?
-
The profile name of the user.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topicId ↔ String?
-
The unique identifier of the topic.
getter/setter pair
- unreadMessageCount ↔ int?
-
The number of unread messages.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a RecentChatData instance into a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited