InboxMessage class

Constructors

InboxMessage({String id = "", String ownerId = "", String profileName = "", String profileImgUrl = "", String text = "", int createdTime = 0, int seenTime = 0, AppMediaType type = AppMediaType.text, String mediaUrl = "", String referenceId = "", int audioDuration = 0, List<String> likedProfiles = const [], bool isPinned = false, String pollId = "", Map<String, List<String>> reactions = const {}, String threadParentId = "", int replyCount = 0, Map<String, dynamic>? pollData, String receivedMedia = "", Map<String, dynamic>? replyData, Map<String, dynamic>? locationData, Map<String, dynamic>? documentData, Map<String, dynamic>? contactData, String localFilePath = "", String deliveryStatus = "", int deliveredTime = 0, int editedTime = 0, bool isDeletedForEveryone = false, List<String> hiddenForProfileIds = const [], bool isForwarded = false, List<String> starredByProfileIds = const [], int hopCount = 0, double? distanceMeters})
InboxMessage.fromJSON(dynamic data)

Properties

audioDuration ↔ int
getter/setter pair
contactData ↔ Map<String, dynamic>?
Contact card / BLE peer identity payload when type == AppMediaType.contact: { 'id': String, 'name': String, 'subtitle': String, 'photoUrl': String, 'bleCard': String? }.
getter/setter pair
createdTime ↔ int
getter/setter pair
deliveredTime ↔ int
Timestamp (ms) when the recipient or mesh relay acknowledged delivery.
getter/setter pair
deliveryStatus ↔ String
Delivery lifecycle status ('sending', 'queued_mesh', 'sent', 'delivered', 'seen', 'error').
getter/setter pair
distanceMeters ↔ double?
Approximate proximity distance in meters when received on a nearby channel.
getter/setter pair
documentData ↔ Map<String, dynamic>?
Document attachment metadata when type == AppMediaType.document: { 'fileName': String, 'mimeType': String, 'sizeBytes': int, 'pageCount': int? }.
getter/setter pair
editedTime ↔ int
Timestamp (ms) when the sender edited the message text (0 if unedited).
getter/setter pair
effectiveMediaSource → String
Effective media URL or local file path for offline/mesh playback & preview.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasReply → bool
Whether this message carries a visible swipe-to-reply quote.
no setter
hiddenForProfileIds ↔ List<String>
Profile IDs for whom this message was hidden via "Eliminar para mí".
getter/setter pair
hopCount ↔ int
Mesh hop count (0 for cloud, >= 1 for BLE/Wi-Fi/Río Colmena relays).
getter/setter pair
id ↔ String
getter/setter pair
isDeletedForEveryone ↔ bool
Tombstone marker when the sender chooses "Eliminar para todos".
getter/setter pair
isForwarded ↔ bool
Whether this message was forwarded from another chat.
getter/setter pair
isPinned ↔ bool
getter/setter pair
likedProfiles ↔ List<String>
getter/setter pair
localFilePath ↔ String
Local file path for instant offline / Bluetooth / Wi-Fi Direct rendering without waiting for or requiring cloud upload.
getter/setter pair
locationData ↔ Map<String, dynamic>?
Inline location payload when type == AppMediaType.location: { 'lat': double, 'lng': double, 'label': String, 'address': String, 'isLive': bool, 'liveUntilMs': int }.
getter/setter pair
mediaUrl ↔ String
getter/setter pair
ownerId ↔ String
getter/setter pair
pollData ↔ Map<String, dynamic>?
Inline poll payload when type == AppMediaType.poll: { 'question': String, 'options': [String], 'votes': { '0': [profileIds] }, 'allowMultiple': bool }.
getter/setter pair
pollId ↔ String
getter/setter pair
profileImgUrl ↔ String
getter/setter pair
profileName ↔ String
getter/setter pair
reactionCount → int
Total reactions across all emojis.
no setter
reactions ↔ Map<String, List<String>>
Multi-emoji reactions: emoji → list of profileIds who reacted with it.
getter/setter pair
receivedMedia ↔ String
Track the transmission medium over which this message was received ('ble', 'wifi', 'swarm', 'data')
getter/setter pair
referenceId ↔ String
getter/setter pair
replyCount ↔ int
Number of thread replies under this (parent) message.
getter/setter pair
replyData ↔ Map<String, dynamic>?
Quoted reply snapshot for WhatsApp-style swipe-to-reply: { 'id': String, 'ownerId': String, 'senderName': String, 'text': String, 'type': String }.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seenTime ↔ int
getter/setter pair
starredByProfileIds ↔ List<String>
Profile IDs who starred/highlighted this message (⭐).
getter/setter pair
text ↔ String
getter/setter pair
threadParentId ↔ String
If set, this message is a reply inside the thread of message threadParentId — it lives in the message thread, not the main timeline.
getter/setter pair
type ↔ AppMediaType
getter/setter pair

Methods

isHiddenFor(String profileId) → bool
Whether this message is hidden for profileId ("Eliminar para mí").
isStarredBy(String profileId) → bool
Whether profileId starred this message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → Map<String, dynamic>
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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