/** * {@inheritdoc} */ public function send($expectedResponse = 'LoginResponse', $useSession = false, $try = 1) { $this->smartHome->setSessionId(null); $req = $this->getRequest(); $req['UserName'] = $this->smartHome->getUsername(); $req['Password'] = $this->smartHome->getIsPasswordEncrypted() === true ? $this->smartHome->getPassword() : self::encrypt($this->smartHome->getPassword()); $response = parent::send($expectedResponse, $useSession, $try); $this->smartHome->setSessionId((string) $response['SessionId']); $this->smartHome->setConfigVersion((string) $response['CurrentConfigurationVersion']); return $response; }
/** * {@inheritdoc} */ public function send($expectedResponse = 'MessageListResponse', $useSession = true, $try = 1) { return parent::send($expectedResponse, $useSession, $try); }
/** * {@inheritdoc} */ public function send($expectedResponse = 'ShcInformationResponse', $useSession = true, $try = 1) { return parent::send($expectedResponse, $useSession, $try); }
/** * {@inheritdoc} */ public function send($expectedResponse = 'GetAllPhysicalDeviceStatesResponse', $useSession = true, $try = 1) { return parent::send($expectedResponse, $useSession, $try); }
/** * {@inheritdoc} */ public function send($expectedResponse = 'GetEntitiesResponse', $useSession = true, $try = 1) { $req = $this->getRequest(); $req->addChild('EntityType', $this->getEntityType()); return parent::send($expectedResponse, $useSession, $try); }
/** * {@inheritdoc} */ public function send($expectedResponse = 'GetApplicationTokenResponse', $useSession = true, $try = 1) { return parent::send($expectedResponse, $useSession, $try); }
/** * {@inheritdoc} */ public function send($expectedResponse = 'AcknowledgeResponse', $useSession = true, $try = 1) { $request = $this->getRequest(); $request['OverrideLock'] = $this->getOverrideLock(); return parent::send($expectedResponse, $useSession, $try); }
/** * {@inheritdoc} */ public function send($expectedResponse = 'AcknowledgeResponse', $useSession = true, $try = 1) { return parent::send($expectedResponse, $useSession, $try); }