\duncan3dc\Sonos\Interfaces\DevicesDeviceInterface

Summary

Methods
Constants
getIp()
getXml()
soap()
getModel()
isSpeaker()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getIp()

getIp() : string

Get the IP address of this device.

Returns

string

getXml()

getXml(string  $url) : \duncan3dc\DomParser\XmlParser

Retrieve some xml from the device.

Parameters

string $url

The url to retrieve

Returns

\duncan3dc\DomParser\XmlParser

soap()

soap(string  $service, string  $action, array  $params = array()) : mixed

Send a soap request to the device.

Parameters

string $service

The service to send the request to

string $action

The action to call

array $params

The parameters to pass

Returns

mixed

getModel()

getModel() : string

Get the model of this device.

Returns

string

isSpeaker()

isSpeaker() : boolean

Check if this sonos device is a speaker.

Returns

boolean