Phue\Command\SetScheduleAttributes::send PHP Method

send() public method

Send command
public send ( Client $client )
$client Phue\Client Phue Client
    public function send(Client $client)
    {
        // Set command attribute if passed
        if ($this->command) {
            $params = $this->command->getActionableParams($client);
            $params['address'] = "/api/{$client->getUsername()}" . $params['address'];
            $this->attributes['command'] = $params;
        }
        $client->getTransport()->sendRequest("/api/{$client->getUsername()}/schedules/{$this->scheduleId}", TransportInterface::METHOD_PUT, (object) $this->attributes);
    }
SetScheduleAttributes