spotifywebapipython.models.zeroconfdiscoveryresult
Zeroconf Discovery Result object.
Information about the Zeroconf entry for a SpotifyConnect device as found by Zeroconf (mDNS).
Returns a basic description of the device, and how source info was obtained.
This is a helper property, and not part of the Zeroconf ServiceInfo result.
Domain on which the service is located, which should match the one passed in during the query (e.g. "local.").
IP address at which the host can be reached (e.g. "192.168.1.81").
This value may also contain a DNS alias, if no IP addresses were discovered for the device. This is very rare, but possible.
IP address(es) at which the host can be reached (e.g. ["192.168.1.81", "172.30.32.1"]).
Note that this value can contain multiple addresses.
Host IP Address and Port number for the service on the host (e.g. 8080).
Note that this value is a convenience property derived from the following
properties: HostIpAddress,HostIpPort.
Result ID (e.g. "Bose-ST10-1" (192.168.1.81:8200)).
This is a helper property, and not part of the Zeroconf interface.
Returns True if the device is a dynamic device; otherwise, False.
Dynamic devices are Spotify Connect devices that are not found in Zeroconf discovery process, but still exist in the player device list. These are usually Spotify Connect web or mobile players with temporary device id's.
True if the device is a Google ChromeCast Group device; otherwise, False.
This is indicated by the ServerKey value starting with "Google-Cast-Group-".
Discovered properties.
Service type, which should match the one passed in during the query name (e.g. "_spotify-connect._tcp.").
Zeroconf API endpoint to add a user to a Spotify Connect device (e.g. "http://192.168.1.81:8200/zc?action=addUser&version=2.10.0").
Zeroconf API endpoint to retrieve device information for a Spotify Connect device (e.g. "http://192.168.1.81:8200/zc?action=getInfo&version=2.10.0").
Zeroconf API endpoint to reset users (e.g. Logoff) currently active on a Spotify Connect device (e.g. "http://192.168.1.81:8200/zc?action=resetUsers&version=2.10.0").
Returns true if the specified object instance contains the same argument values as our object instance values; otherwise, False.
Arguments:
- obj (ZeroconfDiscoveryResult): Object instance to compare.
Gets a Spotify Zeroconf API endpoint url for the specified action key.
Arguments:
- action (str): Spotify Zeroconf endpoint action to formulate (e.g. 'getInfo', 'addUser', 'resetUsers', etc).
Returns:
A string containing the endpoint url for the specified action key.