discontinuedPackage is_journal has been discontinued and replaced by is_logbook.

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 journey path (see JournalService). No user name holds a :, so the line cannot be read as a user's.

Properties

attaching → Set<Kind>
The kinds that attach.
final
bytes → Uint8List
The table as it was read, which the started entry holds.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

allows(int uid, Kind kind) → bool
Whether the user uid may send kind.
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 a started entry 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, {int? uidOf(String user) = _uidOf}) → SenderTable
bytes as 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 Kind.usersAssignedToJourneyPath or Kind.journeyEnded, or a user is not one uidOf finds. uidOf defaults to a number as itself and a name as id -u prints it.