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.
Name: str

Music service station name (for logging purposes).

Source: str

The type or name of the music service where the station resides (e.g. "PANDORA", "SPOTIFY", etc).

SourceAccount: str

The account associated with the Source.

Token: str

Music service token that uniquely identifies the music service station.

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.
def ToString(self) -> str:

Returns a displayable string representation of the class.