NodeRegister class final
Node → Hub: registers the node's identity and platform.
- Inheritance
-
- Object
- ControlMessage
- NodeRegister
Constructors
-
NodeRegister({required String nodeId, required String displayName, required PlatformInfo platform, String? uid, Map<
String, String> labels = const {}}) -
Creates a register message.
const
Properties
- channelId → int?
-
The channel this message pertains to, or
nullfor connection-level messages (the envelopecfield).no setterinherited - displayName → String
-
A human-friendly display name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Map<
String, String> -
Operator labels.
final
- nodeId → String
-
The node id.
final
- platform → PlatformInfo
-
The node platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The stable type discriminator (the envelope
tfield).no setteroverride - uid → String?
-
The deterministic global UID the node computed for itself, or
nullfor older nodes that do not report one.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDescriptor(
) → NodeDescriptor - Builds the public NodeDescriptor this registration describes (offline until the Hub marks it online).
-
toJson(
) → Map< String, dynamic> -
The message payload (the envelope
dfield), without the type or channel.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
int? channel, Map< String, dynamic> d) → NodeRegister - Decodes a NodeRegister.