''' Representation of Inputs
.. reviewed 9 November 2018
'''
import logging
import musiccast2mqtt as mcc
LOG = logging.getLogger(__name__)
[docs]class Feed(Input):
''' Represents an input on the device that is not a source.
A feed within a MusicCast system is an input for which the `play_info_type`
field within the getFeatures structure is set to **none**.
Args:
feed_data (data): the feed data
device (:class:`Device`): the parent device.
'''
def __init__(self, feed_data, device):
super(Feed, self).__init__(feed_data, device)
return
[docs]class Source(Input):
''' Represents a source on the device.
A source within a MusicCast system is an input for which the
``play_info_type`` field within the getFeatures structure is set to a
different value than ``none``, normally either ``cd``, ``tuner`` or
``netusb``.
Args:
source_data (dict): the source data
device (:class:`Device`): the parent device.
'''
def __init__(self, source_data, device):
super(Source, self).__init__(source_data, device)
return