public function parseResponse() { parent::parseResponse(); $this->deviceID = (string) $this->getResponseObject()->attributes()->deviceID; $this->target = (int) $this->getResponseObject()->targetbass; $this->actual = (int) $this->getResponseObject()->actualbass; }
public function parseResponse() { parent::parseResponse(); $this->deviceID = (string) $this->getResponseObject()->attributes()->deviceID; $this->name = (string) $this->getResponseObject()->name; $this->type = (string) $this->getResponseObject()->type; $this->account = (string) $this->getResponseObject()->margeAccountUUID; $this->ipAddress = (string) $this->getResponseObject()->networkInfo->ipAddress; $this->macAddress = (string) $this->getResponseObject()->networkInfo->macAddress; }
public function parseResponse() { parent::parseResponse(); $this->deviceID = (string) $this->getResponseObject()->attributes()->deviceID; $this->target = (int) $this->getResponseObject()->targetvolume; $this->actual = (int) $this->getResponseObject()->actualvolume; if ((string) $this->getResponseObject()->muteenabled == "true") { $this->muted = true; } else { $this->muted = false; } }
public function parseResponse() { parent::parseResponse(); $this->master = (string) $this->getResponseObject()->attributes()->master; $i = 0; while ($this->getResponseObject()->member[$i]) { $member = new \stdClass(); $member->ip = (string) $this->getResponseObject()->member[$i]->attributes()->ipaddress; $member->mac = (string) $this->getResponseObject()->member[$i]; $this->members[] = $member; $i++; } }
public function parseResponse() { parent::parseResponse(); $this->deviceID = (string) $this->getResponseObject()->attributes()->deviceID; if ((string) $this->getResponseObject()->bassAvailable == "true") { $this->available = true; } else { $this->available = false; } $this->min = (int) $this->getResponseObject()->bassMin; $this->max = (int) $this->getResponseObject()->bassMax; $this->default = (int) $this->getResponseObject()->bassDefault; }
public function parseResponse() { parent::parseResponse(); $this->presets = array(); foreach ($this->getResponseObject()->preset as $preset) { $item = new \stdClass(); $item->source = (string) $preset->ContentItem->attributes()->source; $item->location = (string) $preset->ContentItem->attributes()->location; $item->sourceAccount = (string) $preset->ContentItem->attributes()->sourceAccount; if ((string) $preset->ContentItem->attributes()->isPresetable == "true") { $item->isPresetable = true; } else { $item->isPresetable = false; } $item->name = (string) $preset->ContentItem->itemName; $this->presets[(int) $preset->attributes()->id] = $item; } }
public function parseResponse() { parent::parseResponse(); $this->sources = array(); $this->deviceID = (string) $this->getResponseObject()->attributes()->deviceID; foreach ($this->getResponseObject()->sourceItem as $sourceItem) { $item = new \stdClass(); $item->source = (string) $sourceItem->attributes()->source; $item->name = (string) $sourceItem; if ($item->name == "") { $item->name = $item->source; } $item->sourceAccount = (string) $sourceItem->attributes()->sourceAccount; $item->status = (string) $sourceItem->attributes()->status; if ((string) $sourceItem->attributes()->isLocal == "true") { $item->isLocal = true; } else { $item->isLocal = false; } $this->sources[] = $item; } }
public function parseResponse() { parent::parseResponse(); $this->deviceID = (string) $this->getResponseObject()->attributes()->deviceID; $this->source = (string) $this->getResponseObject()->attributes()->source; $this->contentItem = new \stdClass(); if ($this->getResponseObject()->ContentItem) { $this->contentItem->source = (string) $this->getResponseObject()->ContentItem->attributes()->source; $this->contentItem->location = (string) $this->getResponseObject()->ContentItem->attributes()->location; $this->contentItem->sourceAccount = (string) $this->getResponseObject()->ContentItem->attributes()->sourceAccount; $this->contentItem->isPresetable = (string) $this->getResponseObject()->ContentItem->attributes()->isPresetable; $this->contentItem->name = (string) $this->getResponseObject()->ContentItem->itemName; } $this->track = (string) $this->getResponseObject()->track; $this->album = (string) $this->getResponseObject()->album; $this->stationName = (string) $this->getResponseObject()->stationName; $this->stationLocation = (string) $this->getResponseObject()->stationLocation; $this->playStatus = (string) $this->getResponseObject()->playStatus; $this->description = (string) $this->getResponseObject()->description; if ($this->getResponseObject()->art) { $this->art = (string) $this->getResponseObject()->art; $this->artImageStatus = (string) $this->getResponseObject()->art->attributes()->artImageStatus; } }