FileMessage class
Represents a file message with various parameters.
This class is designed to encapsulate all the necessary information required to send a file message, including the recipient's JID, reply message ID, message type, and additional message parameters such as location, contact, and file details.
- Available extensions
Constructors
- FileMessage({required String toJid, String? replyMessageId, MessageType? messageType, LocationMessageParams? locationMessage, ContactMessageParams? contactMessage, FileMessageParams? fileMessage, String topicId = ""})
- Initializes a new instance of the FileMessage class.
Properties
- contactMessage ↔ ContactMessageParams?
-
Parameters for a contact message, if applicable.
getter/setter pair
- fileMessage ↔ FileMessageParams?
-
Parameters for the file being sent.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- locationMessage ↔ LocationMessageParams?
-
Parameters for a location message, if applicable.
getter/setter pair
-
mentionedUsersIds
↔ List<
String> ? -
A list of user IDs mentioned in the message.
getter/setter pair
- messageType ↔ MessageType?
-
The type of message, defined by the MessageType enum.
getter/setter pair
-
metaData
↔ List<
MessageMetaData> -
A list of MessageMetaData objects providing additional information about the message.
getter/setter pair
- replyMessageId ↔ String?
-
The ID of the message being replied to, if any.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toJid ↔ String
-
The Jabber ID (JID) of the recipient.
getter/setter pair
- topicId ↔ String
-
The ID of the topic under which the message is sent, if any.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Available on FileMessage, provided by the ExtractFileMessage extension
Converts a FileMessage object into a map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited