spotifywebapipython.zeroconfapi.zeroconfgetinfoalias

@export
class ZeroconfGetInfoAlias:

Spotify Zeroconf API GetInfo Alias object.

ZeroconfGetInfoAlias(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
Id: str

Unique identifier of the alias (e.g. '1', '2', etc).

Note that this appears to be different than the ZeroconfGetInfo.DeviceId value. Spotify Connect documentation is sparse, but I believe it's just a number from 1-8, with eight being the maximum number of allowable alias names.

IsGroup: bool

True if the alias is a group; otherwise, False.

Name: str

Display name of the alias (e.g. "Kitchen Speakers").

Title: str

Alias name and id value (e.g. '"Kitchen Speakers" (1)').

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self, includeTitle: bool = False) -> str:

Returns a displayable string representation of the class.

Arguments:
  • includeTitle (str): True to include the class name title prefix.