MailboxNotification class

Notification message format (used by both mechanisms)

Constructors

MailboxNotification({required String mailboxPath, required MailboxType mailboxType, required int messageCount, required int timestamp, String? serverPeerId, String? ownerPeerId})
MailboxNotification.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
mailboxPath → String
The folder alone; ownerPeerId says whose mailbox it is.
final
mailboxType → MailboxType
final
messageCount → int
final
ownerPeerId → String?
Whose mailbox mailboxPath is in. A client following several owners' shared or public mailboxes tells two folders of the same name apart by it. SFClient fills it in for servers that do not send it: the client's own peer id for a private notification, the subscribed owner for a GossipSub one.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverPeerId → String?
The S&F server that sent this notification (for direct P2P notifications). Null for GossipSub notifications. Used to ensure retrieval happens from the same server that has the message.
final
timestamp → int
Unix seconds.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override
withOwnerIfMissing(String owner) → MailboxNotification
This notification with ownerPeerId set to owner if the server did not send one.
withServerPeerId(String peerId) → MailboxNotification
Create a copy with a different serverPeerId

Operators

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