ONCE
ONCE = 0
Provides an interface for managing the alarms on the network.
setRoom(string $uuid) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Set the room of the alarm.
string | $uuid | The unique id of the room (eg, RINCON_B8E93758723601400) |
getSpeaker() : \duncan3dc\Sonos\Interfaces\SpeakerInterface
Get the speaker of the alarm.
setSpeaker(\duncan3dc\Sonos\Interfaces\SpeakerInterface $speaker) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Set the speaker of the alarm.
\duncan3dc\Sonos\Interfaces\SpeakerInterface | $speaker | The speaker to attach this alarm to |
getTime() : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
Get the start time of the alarm.
setTime(\duncan3dc\Sonos\Interfaces\Utils\TimeInterface $time) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Set the start time of the alarm.
\duncan3dc\Sonos\Interfaces\Utils\TimeInterface | $time | The time to set the alarm for |
getDuration() : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
Get the duration of the alarm.
setDuration(\duncan3dc\Sonos\Interfaces\Utils\TimeInterface $duration) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Set the duration of the alarm.
\duncan3dc\Sonos\Interfaces\Utils\TimeInterface | $duration | The duration of the alarm |
getFrequency() : integer
Get the frequency of the alarm.
The result is an integer which can be compared using the bitwise operators and the class constants for each day. If the alarm is a one time only alarm then it will only be equal to the class constant ONCE (none of the days).
setFrequency(integer $frequency) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Set the frequency of the alarm.
integer | $frequency | The integer representing the frequency (using the bitwise class constants) |
setVolume(integer $volume) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Set the volume of the alarm.
integer | $volume | The volume of the alarm |
setRepeat(boolean $repeat) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Turn repeat mode on or off.
boolean | $repeat | Whether repeat should be on or not |
setShuffle(boolean $shuffle) : \duncan3dc\Sonos\Interfaces\AlarmInterface
Turn shuffle mode on or off.
boolean | $shuffle | Whether shuffle should be on or not |
activate() : \duncan3dc\Sonos\Interfaces\AlarmInterface
Make the alarm active.
deactivate() : \duncan3dc\Sonos\Interfaces\AlarmInterface
Make the alarm inactive.