bosesoundtouchapi.models.recentlist
SoundTouch device RecentList configuration object.
This class contains the attributes and sub-items that represent the recent configuration of the device.
The list of Recent
objects are sorted by CreatedOn
in descending
order so that the last entry added to the recents list is the first
to appear in the list.
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.
Date and time (in epoch format) of when the recent list was last updated.
This is a helper property, and is not part of the SoundTouch WebServices API implementation.
Checks the list items for a matching source and name value.
Arguments:
- source (str): Source to find in the list.
- name (str): Name to find in the list.
Returns:
A
Recent
instance if the name was found; otherwise, null.
Returns the index of the list item matching the source and name value.
Arguments:
- source (str): Source to find in the list.
- name (str): Name to find in the list.
Returns:
The index of the item if found; otherwise, -1.
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.