\duncan3dc\Sonos\InterfacesStateInterface

Representation of the current state of a controller.

Summary

Methods
Constants
setTitle()
getTitle()
setArtist()
getArtist()
setAlbum()
getAlbum()
setNumber()
getNumber()
setAlbumArt()
getAlbumArt()
getUri()
getMetaData()
isStreaming()
setStream()
getStream()
setDuration()
getDuration()
setPosition()
getPosition()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setTitle()

setTitle(\duncan3dc\Sonos\Interfaces\string  $title) 

Set the name of the track.

Parameters

\duncan3dc\Sonos\Interfaces\string $title

getTitle()

getTitle() 

Get the name of the track.

setArtist()

setArtist(\duncan3dc\Sonos\Interfaces\string  $artist) 

Set the artist of the track.

Parameters

\duncan3dc\Sonos\Interfaces\string $artist

getArtist()

getArtist() 

Get the name of the artist of the track.

setAlbum()

setAlbum(\duncan3dc\Sonos\Interfaces\string  $album) 

Set the album of the track.

Parameters

\duncan3dc\Sonos\Interfaces\string $album

getAlbum()

getAlbum() 

Get the name of the album of the track.

setNumber()

setNumber(\duncan3dc\Sonos\Interfaces\int  $number) 

Set the number of the track.

Parameters

\duncan3dc\Sonos\Interfaces\int $number

getNumber()

getNumber() 

Get the track number.

setAlbumArt()

setAlbumArt(\duncan3dc\Sonos\Interfaces\string  $albumArt) 

Set the album art of the track.

Parameters

\duncan3dc\Sonos\Interfaces\string $albumArt

getAlbumArt()

getAlbumArt() 

getUri()

getUri() : string

Get the URI for this object.

Returns

string

getMetaData()

getMetaData() : string

Get the metadata xml for this object.

Returns

string

isStreaming()

isStreaming() : boolean

Check if this state is currently playing a stream.

Returns

boolean

getDuration()

getDuration() 

Get the duration of the currently active track.