bosesoundtouchapi.models.service

@export
class Service:

SoundTouch device Service configuration object.

This class contains the attributes and sub-items that represent a service configuration of the device.

Service(root: xml.etree.ElementTree.Element)

Initializes a new instance of the class.

Arguments:
  • root (Element): xmltree Element item to load arguments from.
    If specified, then other passed arguments are ignored.
IsAvailable: bool

True if the service is currently available; otherwise, False.

Reason: str

Reason why the service is unavailable (e.g. "INVALID_SOURCE_TYPE", etc).

ServiceType: str

Service type value (e.g. "BLUETOOTH", "SPOTIFY", etc).

def ToString(self) -> str:

Returns a displayable string representation of the class.