STATIONS
STATIONS = 0 : integer
Handle radio streams using TuneIn.
$controller : \duncan3dc\Sonos\Interfaces\ControllerInterface
__construct(\duncan3dc\Sonos\Interfaces\ControllerInterface $controller)
Create a new instance.
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | A Controller instance to send commands to |
getFavouriteStations() : array<mixed,\duncan3dc\Sonos\Tracks\Stream>
Get the favourite radio stations.
getFavouriteStation(string $name) : \duncan3dc\Sonos\Tracks\Stream
Get the favourite radio station with the specified name.
If no case-sensitive match is found it will return a case-insensitive match.
string | $name | The name of the station |
getFavouriteShows() : array<mixed,\duncan3dc\Sonos\Tracks\Stream>
Get the favourite radio shows.
getFavouriteShow(string $name) : \duncan3dc\Sonos\Tracks\Stream
Get the favourite radio show with the specified name.
If no case-sensitive match is found it will return a case-insensitive match.
string | $name | The name of the show |
getFavourites(integer $type) : array<mixed,\duncan3dc\Sonos\Tracks\Stream>
Get the favourite radio shows/stations.
integer | $type | One of the class constants for either shows or stations |