/** * @param AriClient $client * @param string $response */ public function __construct(AriClient $client, $response) { parent::__construct($client, $response); $this->bridge = $this->getResponseValue('bridge', '\\phparia\\Resources\\Bridge', $client); $this->channel = $this->getResponseValue('channel', '\\phparia\\Resources\\Channel', $client); $this->contex = $this->getResponseValue('context'); $this->exten = $this->getResponseValue('exten'); $this->isExternal = $this->getResponseValue('is_external'); $this->replaceChannel = $this->getResponseValue('replace_channel', '\\phparia\\Resources\\Channel', $client); $this->result = $this->getResponseValue('result'); $this->transferee = $this->getResponseValue('transferee', '\\phparia\\Resources\\Channel', $client); }
/** * @param AriClient $client * @param string $response */ public function __construct(AriClient $client, $response) { parent::__construct($client, $response); $this->destinationApplication = $this->getResponseValue('destination_application'); $this->destinationBridge = $this->getResponseValue('destination_bridge'); $this->destinationLinkFirstLeg = $this->getResponseValue('destination_link_first_leg', '\\phparia\\Resources\\Channel', $client); $this->destinationLinkSecondLeg = $this->getResponseValue('destination_link_second_leg'); $this->destinationThreewayBridge = $this->getResponseValue('destination_threeway_bridge', '\\phparia\\Resources\\Bridge', $client); $this->destinationThreewayChannel = $this->getResponseValue('destination_threeway_channel', '\\phparia\\Resources\\Channel', $client); $this->destinationType = $this->getResponseValue('destination_type'); $this->isExternal = $this->getResponseValue('is_external'); $this->replaceChannel = $this->getResponseValue('replace_channel', '\\phparia\\Resources\\Channel', $client); $this->result = $this->getResponseValue('result'); $this->transferTarget = $this->getResponseValue('transfer_target', '\\phparia\\Resources\\Channel', $client); $this->transferee = $this->getResponseValue('transferee', '\\phparia\\Resources\\Channel', $client); $this->transfererFirstLeg = $this->getResponseValue('transferer_first_leg', '\\phparia\\Resources\\Channel', $client); $this->transfererFirstLegBridge = $this->getResponseValue('transferer_first_leg_bridge', '\\phparia\\Resources\\Bridge', $client); $this->transfererSecondLeg = $this->getResponseValue('transferer_second_leg', '\\phparia\\Resources\\Channel', $client); $this->transfererSecondLegBridge = $this->getResponseValue('transferer_second_leg_bridge', '\\phparia\\Resources\\Bridge', $client); }