NodeRole enum

The operational role of a node in the Airpass mesh.

Inheritance
Available extensions

Values

global → const NodeRole

A Global node relays all messages regardless of group affiliation. Think of this as a "super relay" — it bridges between groups.

const NodeRole(0, 'G')
group → const NodeRole

A Group node only relays messages within its assigned group. It will only connect to peers that share its groupId or are global.

const NodeRole(1, 'R')

Properties

code String
Single-character code used in endpoint name encoding. Kept to 1 byte for compactness.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Integer value stored in the Drift database.
final

Methods

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

fromCode(String code) NodeRole
Deserialize from the single-character code in the endpoint name.
fromValue(int value) NodeRole
Deserialize from the integer stored in the database.

Constants

values → const List<NodeRole>
A constant List of the values in this enum, in order of their declaration.