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);
}