PeerPreferences class
Peer preferences for S&F servers (MX-like)
Defines which S&F servers a peer prefers to use for message storage, with priority ordering for failover, similar to email MX records.
Constructors
-
PeerPreferences({required PeerId peerId, required List<
SFServerPreference> servers, required int version, required int ttl, required DateTime timestamp}) -
const
-
PeerPreferences.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool
-
Check if preferences have expired
no setter
- peerId → PeerId
-
final
- primaryServer → SFServerPreference?
-
Get primary (highest priority) server
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
servers
→ List<
SFServerPreference> -
final
-
serversByPriority
→ List<
SFServerPreference> -
Get servers sorted by priority (lower = higher priority)
no setter
- timestamp → DateTime
-
final
- ttl → int
-
final
- version → int
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited