PresenceStatus class

Presence status information for a peer

Constructors

PresenceStatus({required PeerId peerId, required PresenceState state, DateTime? lastSeen, Duration? ttlRemaining, String? relayId, DateTime? checkedAt})
PresenceStatus.offline({required PeerId peerId})
factory
PresenceStatus.online({required PeerId peerId, required Duration ttlRemaining, String? relayId})
factory
PresenceStatus.unknown({required PeerId peerId})
factory

Properties

checkedAt → DateTime
final
hashCode → int
The hash code for this object.
no setterinherited
isOffline → bool
no setter
isOnline → bool
no setter
isUnknown → bool
no setter
lastSeen → DateTime?
final
peerId → PeerId
final
relayId → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → PresenceState
final
ttlRemaining → Duration?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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