\duncan3dc\Sonos\ServicesRadio

Handle radio streams using TuneIn.

Summary

Methods
Properties
Constants
__construct()
getFavouriteStations()
getFavouriteStation()
getFavouriteShows()
getFavouriteShow()
No public properties found
STATIONS
SHOWS
getFavourites()
$controller
N/A
No private methods found
No private properties found
N/A

Constants

STATIONS

STATIONS = 0 : integer

SHOWS

SHOWS = 1 : integer

Properties

Methods

getFavouriteStations()

getFavouriteStations() : array<mixed,\duncan3dc\Sonos\Tracks\Stream>

Get the favourite radio stations.

Returns

array<mixed,\duncan3dc\Sonos\Tracks\Stream>

getFavouriteStation()

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.

Parameters

string $name

The name of the station

Returns

\duncan3dc\Sonos\Tracks\Stream

getFavouriteShows()

getFavouriteShows() : array<mixed,\duncan3dc\Sonos\Tracks\Stream>

Get the favourite radio shows.

Returns

array<mixed,\duncan3dc\Sonos\Tracks\Stream>

getFavouriteShow()

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.

Parameters

string $name

The name of the show

Returns

\duncan3dc\Sonos\Tracks\Stream

getFavourites()

getFavourites(integer  $type) : array<mixed,\duncan3dc\Sonos\Tracks\Stream>

Get the favourite radio shows/stations.

Parameters

integer $type

One of the class constants for either shows or stations

Returns

array<mixed,\duncan3dc\Sonos\Tracks\Stream>