bosesoundtouchapi.models.mediaitemcontainer
@export
class
MediaItemContainer:
SoundTouch device MediaItemContainer configuration object.
This class contains the attributes and sub-items that represent a single MediaItemContainer configuration of the device.
MediaItemContainer(root: xml.etree.ElementTree.Element = None)
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.
Source: str
Content item source type.
This value is defined at bosesoundtouchapi.soundtouchsources.SoundTouchSources
.
def
ToDictionary(self, encoding: str = 'utf-8') -> dict:
Returns a dictionary representation of the class.
Arguments:
- encoding (str): encode type (e.g. 'utf-8', 'unicode', etc).
Default is 'utf-8'.
def
ToElement(self, isRequestBody: bool = False) -> xml.etree.ElementTree.Element:
Overridden.
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.