SenderTable class final
Which kinds each user may send: a line per user, the user's name or id
and then the kinds, separated by spaces. Blank lines and lines starting
with # are skipped.
A line attaching: <kinds> names the kinds that attach: a chain started
by one of them names its parent entry on its first body line and joins
that entry's trajectory (see LogbookService). No user name holds a
:, so the line cannot be read as a user's.
Properties
Methods
-
allows(
UserId user, Kind kind) → bool -
Whether
usermay sendkind. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
attachingIn(
Uint8List bytes) → Set< Kind> -
The attaching kinds of the table
bytes, as astartedentry holds it, read back without looking any user up: what attached when an entry was added is what the table in force then said. Never throws: a kind it cannot read attaches nothing. -
parse(
Uint8List bytes, {UserId? uidOf(String user) = _uidOfUser}) → SenderTable -
bytesas a table. Throws a FormatException naming the line when a line has no kinds, a kind is not one Kind.parse takes, an attaching kind is one whose body the service reads (such as Kind.missionEnded), or a user is not oneuidOffinds.uidOfdefaults to a number as itself and a name asid -uprints it, and a user UserId.parse refuses (65534,nobody) is not one it finds.