ResolvedBonsoirService class

Represents a resolved Bonsoir service.

Inheritance

Constructors

ResolvedBonsoirService({required String name, required String type, required int port, Map<String, String> attributes = const {}, required String? host})
Creates a new resolved Bonsoir service.
ResolvedBonsoirService.fromJson(Map<String, dynamic> json, {String prefix = 'service.'})
Creates a new resolved Bonsoir service instance from the given JSON map.
ResolvedBonsoirService.ignoreNorms({required String name, required String type, required int port, Map<String, String> attributes = const {}, required String? host})
Creates a new resolved Bonsoir service. name, type and attributes will not be filtered.

Properties

attributes Map<String, String>
The service attributes. Will be stored in a TXT record.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
host String?
The service host.
final
name String
The service name. Should represent what you want to advertise. This name is subject to change based on conflicts with other services advertised on the same network.
finalinherited
port int
The service port. Your service should be reachable at the given port using the protocol specified in type.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The service type.
finalinherited

Methods

copyWith({String? name, String? type, int? port, String? host, Map<String, String>? attributes}) BonsoirService
Copies this service instance with the given parameters.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(ServiceResolver resolver) Future<void>
Tries to resolve this service.
inherited
toJson({String prefix = 'service.'}) Map<String, dynamic>
Converts this JSON service to a JSON map.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
override