bosesoundtouchapi.models.serviceAvailability

@export
class ServiceAvailability:

SoundTouch device ServiceAvailability configuration object.

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

ServiceAvailability(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.
ServiceCount: int

The total number of services defined.

The list of Service items.

def ToString(self, includeItems: bool = True) -> str:

Returns a displayable string representation of the class.

Arguments:
  • includeItems (bool): True to include all items in the list; otherwise False to only include the base attributes.