コード例 #1
0
ファイル: Bridge.php プロジェクト: anthraxite/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridgeClass = $this->response->bridge_class;
     $this->bridgeType = $this->response->bridge_type;
     $this->channels = $this->response->channels;
     $this->creator = $this->response->creator;
     $this->id = $this->response->id;
     $this->name = $this->response->name;
     $this->technology = $this->response->technology;
 }
コード例 #2
0
ファイル: DeviceState.php プロジェクト: stgnet/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->name = $this->response->name;
     $this->state = $this->response->state;
 }
コード例 #3
0
ファイル: LiveRecording.php プロジェクト: stgnet/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->cause = property_exists($this->response, 'cause') ? $this->response->cause : null;
     $this->duration = property_exists($this->response, 'duration') ? $this->response->duration : null;
     $this->format = $this->response->format;
     $this->name = $this->response->name;
     $this->silenceDuration = property_exists($this->response, 'silence_duration') ? $this->response->silence_duration : null;
     $this->state = $this->response->state;
     $this->talkingDuration = property_exists($this->response, 'talking_duration') ? $this->response->talking_duration : null;
     $this->targetUri = $this->response->target_uri;
 }
コード例 #4
0
ファイル: Application.php プロジェクト: wormling/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridgeIds = $this->getResponseValue('bridge_ids');
     $this->channelIds = $this->getResponseValue('channel_ids');
     $this->deviceNames = $this->getResponseValue('device_names');
     $this->endpointIds = $this->getResponseValue('endpoint_ids');
     $this->name = $this->getResponseValue('name');
 }
コード例 #5
0
ファイル: Playback.php プロジェクト: stgnet/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->id = $this->response->id;
     $this->language = property_exists($this->response, 'language') ? $this->response->language : null;
     $this->mediaUri = $this->response->media_uri;
     $this->state = $this->response->state;
     $this->targetUri = $this->response->target_uri;
 }
コード例 #6
0
ファイル: Application.php プロジェクト: stgnet/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridgeIds = $this->response->bridge_ids;
     $this->channelIds = $this->response->channel_ids;
     $this->deviceNames = $this->response->device_names;
     $this->endpointIds = $this->response->endpoint_ids;
     $this->name = $this->response->name;
 }
コード例 #7
0
ファイル: LiveRecording.php プロジェクト: wormling/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->cause = $this->getResponseValue('cause');
     $this->duration = $this->getResponseValue('duration');
     $this->format = $this->getResponseValue('format');
     $this->name = $this->getResponseValue('name');
     $this->silenceDuration = $this->getResponseValue('silence_duration');
     $this->state = $this->getResponseValue('state');
     $this->talkingDuration = $this->getResponseValue('talking_duration');
     $this->targetUri = $this->getResponseValue('target_uri');
 }
コード例 #8
0
ファイル: Bridge.php プロジェクト: wormling/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->bridgeClass = $this->getResponseValue('bridge_class');
     $this->bridgeType = $this->getResponseValue('bridge_type');
     $this->channels = $this->getResponseValue('channels');
     $this->creator = $this->getResponseValue('creator');
     $this->id = $this->getResponseValue('id');
     $this->name = $this->getResponseValue('name');
     $this->technology = $this->getResponseValue('technology');
 }
コード例 #9
0
ファイル: Channel.php プロジェクト: wormling/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->accountCode = $this->getResponseValue('account_code');
     $this->caller = $this->getResponseValue('caller', '\\phparia\\Resources\\CallerId');
     $this->connected = $this->getResponseValue('connected', '\\phparia\\Resources\\CallerId');
     $this->creationTime = $this->getResponseValue('creationtime', '\\DateTime');
     $this->dialplan = $this->getResponseValue('dialplan', '\\phparia\\Resources\\DialplanCep');
     $this->id = $this->getResponseValue('id');
     $this->name = $this->getResponseValue('name');
     $this->state = $this->getResponseValue('state');
 }
コード例 #10
0
ファイル: Playback.php プロジェクト: wormling/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->id = $this->getResponseValue('id');
     $this->language = $this->getResponseValue('language');
     $this->mediaUri = $this->getResponseValue('media_uri');
     $this->state = $this->getResponseValue('state');
     $this->targetUri = $this->getResponseValue('target_uri');
 }
コード例 #11
0
ファイル: Channel.php プロジェクト: anthraxite/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->accountCode = property_exists($this->response, 'account_code') ? $this->response->account_code : null;
     $this->caller = new CallerId($this->response->caller);
     $this->connected = new CallerId($this->response->connected);
     $this->creationTime = new \DateTime($this->response->creationtime);
     $this->dialplan = new DialplanCep($this->response->dialplan);
     $this->id = $this->response->id;
     $this->name = $this->response->name;
     $this->state = $this->response->state;
 }
コード例 #12
0
ファイル: Endpoint.php プロジェクト: wormling/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channelIds = $this->getResponseValue('channel_ids');
     $this->resource = $this->getResponseValue('resource');
     $this->state = $this->getResponseValue('state');
     $this->technology = $this->getResponseValue('technology');
 }
コード例 #13
0
ファイル: DeviceState.php プロジェクト: wormling/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->name = $this->getResponseValue('name');
     $this->state = $this->getResponseValue('state');
 }
コード例 #14
0
ファイル: Endpoint.php プロジェクト: stgnet/phparia
 /**
  * @param AriClient $client
  * @param string $response
  */
 public function __construct(AriClient $client, $response)
 {
     parent::__construct($client, $response);
     $this->channelIds = $this->response->channel_ids;
     $this->resource = $this->response->resource;
     $this->state = property_exists($this->response, 'state') ? $this->response->state : null;
     $this->technology = $this->response->technology;
 }