VBaseMessage class abstract

Abstract base class for a message.

This class defines the general structure and data of a message. It is intended to be subclassed for different kinds of messages.

Implementers

Constructors

VBaseMessage({required String id, required String sIdentifier, required String senderId, required String senderName, required String senderImageThumb, required String platform, required String roomId, required String content, required VMessageType messageType, required String localId, required String createdAt, required String updatedAt, required VMessageEmitStatus emitStatus, required VBaseMessage? replyTo, required String? seenAt, required String? deliveredAt, required String? forwardId, required String? allDeletedAt, required String? parentBroadcastId, required bool isStared, required bool isEncrypted, required String? contentTr})
VBaseMessage.buildFakeMessage({required String content, required VMessageType messageType, required VMessageEmitStatus emitStatus, String? forwardId, String? broadcastId, VBaseMessage? replyTo})
VBaseMessage.buildMessage({required String content, required String roomId, required VMessageType messageType, required bool isEncrypted, String? forwardId, String? broadcastId, VBaseMessage? replyTo})
VBaseMessage.fromLocalMap(Map<String, dynamic> map)
from local
VBaseMessage.fromRemoteMap(Map<String, dynamic> map)

Properties

allDeletedAt String?
Time when the message was deleted from all.
getter/setter pair
content String
The content of the message from the server.
final
contentTr String?
Translated content of the message.
getter/setter pair
createdAt String
Time when the message was sent.
getter/setter pair
createdAtDate DateTime
no setter
deletedAtDate DateTime?
no setter
deliveredAt String?
Time when the message was delivered.
getter/setter pair
deliveredAtDate DateTime?
no setter
emitStatus VMessageEmitStatus
Status of the message emit (server confirm, error, sending).
getter/setter pair
forwardId String?
ID of the message that this message was forwarded from.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
Unique ID of the message. This will be changed if message get from remote.
getter/setter pair
isAllDeleted bool
no setter
isContainReply bool
no setter
isDeleted bool
If the user intends to delete this message.
getter/setter pair
isEncrypted bool
If the message is encrypted.
final
isForward bool
Some Getters
no setter
isFromBroadcast bool
no setter
isMeSender bool
no setter
isStared bool
If the message is starred.
getter/setter pair
isTrans bool
no setter
localId String
Unique local ID of the message. This is used to uniquely identify the message across all messages, and is useful because the server message ID will change.
getter/setter pair
messageType VMessageType
Type of the message.
getter/setter pair
parentBroadcastId String?
If the message was sent through broadcast, the ID of the parent broadcast.
getter/setter pair
platform String
The platform through which this message was sent.
final
realContent String
no setter
realContentMentionParsedWithAt String
no setter
replyTo VBaseMessage?
If this message is a reply, the original message it replies to.
getter/setter pair
roomId String
ID of the room where this message was sent.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seenAt String?
Time when the message was seen.
getter/setter pair
seenAtDate DateTime?
no setter
senderId String
ID of the sender.
getter/setter pair
senderImageThumb String
Thumbnail image URL of the sender.
getter/setter pair
senderName String
Name of the sender.
getter/setter pair
sIdentifier String
Identifier of the message in the server.
final
updatedAt String
Time when the message was last updated.
final
updatedAtDate DateTime
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toListOfPartValue() List<PartValue>
toLocalMap() Map<String, Object?>
toRemoteMap() Map<String, Object?>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override