bosesoundtouchapi.models.removestation
SoundTouch device RemoveStation configuration object.
RemoveStation( source: str = None, sourceAccount: str = None, location: str = None, name: str = None, contentItem: bosesoundtouchapi.models.contentitem.ContentItem = 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.
- location (str): Music service station location to access.
- 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. - contentItem (ContentItem): ContentItem object to load arguments from.
If specified, then other passed arguments are ignored.
ContentItem: bosesoundtouchapi.models.contentitem.ContentItem
ContentItem object used to store the supplied values.
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.