DiscoveredDome class final
A dome found by a DomeDiscovery.
- Annotations
-
- @immutable
Constructors
-
DiscoveredDome({required String id, required FreedomeEndpoint endpoint, required DiscoverySource source, required DateTime lastSeen, String? name, List<
String> apiVersions = const ['v1'], bool tls = false, String? fingerprint, String? mode, String? version, List<String> capabilities = const []}) -
Creates a record.
const
Properties
-
apiVersions
→ List<
String> -
API majors announced (
v1[,v2]).final -
capabilities
→ List<
String> -
Short capability list.
final
- endpoint → FreedomeEndpoint
-
Where to connect (carries id, name and the TLS pin).
final
- fingerprint → String?
-
TLS certificate SHA-256 prefix (TOFU pin).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Stable dome id.
final
- lastSeen → DateTime
-
When it was last seen.
final
- mode → String?
-
classical|quantum.final - name → String?
-
Display name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortId → String
-
Short id for pickers (two domes with the same name are told apart, 02f §17).
no setter
- source → DiscoverySource
-
Source of this record.
final
- tls → bool
-
TLS enabled.
final
- version → String?
-
Server version.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromTxt(
Map< String, String> txt, {required String host, required int port, DiscoverySource source = DiscoverySource.mdns, DateTime? seen}) → DiscoveredDome? -
Builds a record from the TXT keys of 02f §8.1 (
id,name,api,tls,fp,mode,ver,caps) and the resolvedhost/port. Returns null without anid(not a Freedome media server).