bosesoundtouchapi.models.addstation
SoundTouch device AddStation configuration object.
AddStation( source: str = None, sourceAccount: str = None, token: str = None, name: str = None, root: xml.etree.ElementTree.Element = None)
Initializes a new instance of the class.
Arguments:
- source (str): Music service source where the station resides (e.g. "PANDORA", "SPOTIFY", etc).
- sourceAccount (str): Music service source account value to login with.
- token (str): Music service token that uniquely identifies the music service station.
- name (str): Music service station name (for logging purposes).
- root (Element): xmltree Element item to load arguments from.
If specified, then other passed arguments are ignored.
Source: str
The type or name of the music service where the station resides (e.g. "PANDORA", "SPOTIFY", etc).
def
ToElement(self, isRequestBody: bool = False) -> xml.etree.ElementTree.Element:
Overridden.
Returns an xmltree Element node representation of the class.
Arguments:
- isRequestBody (bool): True if the element should only return attributes needed for a POST request body; otherwise, False to return all attributes.