bosesoundtouchapi.models.nowselectionupdated

@export
class NowSelectionUpdated:

SoundTouch device Now Selection Updated configuration object.

This class contains the attributes and sub-items that represent the status of a selection update (usually a preset select) of the device.

NowSelectionUpdated(root: xml.etree.ElementTree.Element = None)

Initializes a new instance of the class.

Arguments:
  • root (Element): xmltree Element item to load arguments from.
EventDateUtc: str

Date and time (in epoch format) of when the event took place.

This is a helper property, and not part of the SoundTouch Web Services specification.

EventDeviceId: str

Device identifier the configuration information was obtained from.

This is a helper property, and not part of the SoundTouch Web Services specification.

PresetId: str

The Preset Id that was selected if a preset node exists, otherwise null.

This value will be zero if a non-preset source was selected (e.g. BLUETOOTH, AUXIN, etc).

This is a helper property, and not part of the SoundTouch Web Services specification.

Preset: <property object at 0x0000017EDD386C00>

The selected Preset.

Source: str

The ContentItem source that was selected.

This is a helper property, and not part of the SoundTouch Web Services specification.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.