Class Response
- Namespace
- AppleTvControlLibrary.Discovery.Mdns
- Assembly
- AppleTvControlLibrary.Discovery.dll
Represents the response to an MDNS request.
public sealed class Response
- Inheritance
-
Response
- Inherited Members
Remarks
Initializes a new instance of the Response class.
Constructors
Response(IReadOnlyList<Service>, bool, string?)
Represents the response to an MDNS request.
public Response(IReadOnlyList<Service> services, bool deepSleep, string? model)
Parameters
servicesIReadOnlyList<Service>The parsed DNS-SD services in this response.
deepSleepboolWhether the device was discovered in deep sleep.
modelstringThe advertised device model, if available.
Remarks
Initializes a new instance of the Response class.
Properties
DeepSleep
Gets a value indicating whether the responding device appears to be a sleep proxy.
public bool DeepSleep { get; }
Property Value
- bool
A value indicating whether the responding device appears to be a sleep proxy.
Model
Gets the device model, from the "_device-info._tcp.local" service, if present.
public string? Model { get; }
Property Value
- string
The device model, from the "_device-info._tcp.local" service, if present.
Services
Gets the services discovered in this response.
public IReadOnlyList<Service> Services { get; }
Property Value
- IReadOnlyList<Service>
The services discovered in this response.