Account class
The mediator's view of one served account.
Constructors
- Account({required Vid did, required AccountType accountType, required MediatorAcl acl, QueueLimits? queueLimits, int? sendQueueCount, int? sendQueueBytes, int? receiveQueueCount, int? receiveQueueBytes, int? accessListCount, int? lastReceivedAt, int? lastAuthenticatedAt, AccountStats? stats})
-
const
-
Account.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- accessListCount → int?
-
Number of entries in the account's access list.
final
- accountType → AccountType
-
final
- acl → MediatorAcl
-
final
- did → String
-
The account's controlling DID, or — for privacy, and for mediators that key
accounts by a one-way hash and never hold the full DID — a stable hash of that DID
(see
Vid). Whichever form is used, it is the opaque account identifier the otheraccount/*,acl/*, andaccess-list/*tasks accept.final - hashCode → int
-
The hash code for this object.
no setterinherited
- lastAuthenticatedAt → int?
-
Unix epoch seconds at which this account last completed authentication with the
mediator, over any transport. Present only when the request set
includeActivityand the mediator has recorded an authentication.final - lastReceivedAt → int?
-
Unix epoch seconds at which the mediator last accepted a message addressed to this
account. Present only when the request set
includeActivityand the mediator has recorded such a message; MAY lag the true time by up to 60 seconds.final - queueLimits → QueueLimits?
-
final
- receiveQueueBytes → int?
-
Current byte size of queued receive messages.
final
- receiveQueueCount → int?
-
Current count of queued receive messages.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendQueueBytes → int?
-
Current byte size of queued send messages.
final
- sendQueueCount → int?
-
Current count of queued send messages.
final
- stats → AccountStats?
-
Lifetime counters the mediator keeps for this account. Present only when the
request set
includeStats.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited