TomSecretsPairingHandover class final
The pairing mode's handover line.
Constructors
- TomSecretsPairingHandover({required String dataDirectory, required String address, required int port, required String code, required String device, String? deviceKey, String? approvalLink})
-
A handover: set the machine up in
dataDirectoryby receiving the pairing ataddress:portwithcode, asdevice;deviceKeynames where the device settings container's key is kept (defaultauto);approvalLinkis the address this machine's approval link listens on (none: no link).const
Properties
- address → String
-
The giving machine's address.
final
- approvalLink → String?
-
The address this machine's approval link listens on (
address:port), or null: it goes into the device settings, and the giving machine records it so its service opens the link at once.final - code → String
-
The code its Pairing screen shows.
final
- dataDirectory → String
-
The data directory the machine is set up in.
final
- device → String
-
This machine's name.
final
- deviceKey → String?
-
Where the device settings container's key is kept, or null (
auto).final - hashCode → int
-
The hash code for this object.
no setterinherited
- port → int
-
Its pairing window's port.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toLine(
) → String - The JSON line.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Object? json) → TomSecretsPairingHandover? -
The handover in
json, or null when it is not a pairing handover. Throws FormatException for a pairing handover that misses a member.