bosesoundtouchapi.models.navigateresponse
SoundTouch device NavigateResponse configuration object.
This class contains the attributes and sub-items that represent the navigate response configuration of the device.
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.
The number of items in the Items
list.
Note that this could be different than the TotalItems
property if
the user is limiting the returned results.
The source title of media content (e.g. "Pandora (userid)", etc).
This property is not part of the returned xml of the configuration, but is set after
a call to SoundTouchClient.GetMusicServiceStations
and SoundTouchClient.GetMusicLibraryItems
so that the source title can be displayed by user-interfaces.
Searches the items collection for an item with the specified Name and returns the matching item if found; otherwise, None is returned.
Arguments:
- name (str): Name value to search for (case-sensitive).
Searches the items collection for an item with the specified Source and ContentItem.Location property values and returns the item if found; otherwise, None is returned.
Arguments:
- source (str): Music Service Source value to search for.
- location (str): ContentItem.Location value to search for.
Returns a dictionary representation of the class.
Arguments:
- encoding (str): encode type (e.g. 'utf-8', 'unicode', etc).
Default is 'utf-8'.
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.