| @@ 29-73 (lines=45) @@ | ||
| 26 | * |
|
| 27 | * @author Brian Smith <[email protected]> |
|
| 28 | */ |
|
| 29 | class BridgeMerged extends Event implements IdentifiableEventInterface |
|
| 30 | { |
|
| 31 | /** |
|
| 32 | * @var Bridge |
|
| 33 | */ |
|
| 34 | private $bridge; |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @var Bridge |
|
| 38 | */ |
|
| 39 | private $bridgeFrom; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @return Bridge |
|
| 43 | */ |
|
| 44 | public function getBridge() |
|
| 45 | { |
|
| 46 | return $this->bridge; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @return Bridge |
|
| 51 | */ |
|
| 52 | public function getBridgeFrom() |
|
| 53 | { |
|
| 54 | return $this->bridgeFrom; |
|
| 55 | } |
|
| 56 | ||
| 57 | public function getEventId() |
|
| 58 | { |
|
| 59 | return "{$this->getType()}_{$this->getBridge()->getId()}"; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @param AriClient $client |
|
| 64 | * @param string $response |
|
| 65 | */ |
|
| 66 | public function __construct(AriClient $client, $response) |
|
| 67 | { |
|
| 68 | parent::__construct($client, $response); |
|
| 69 | ||
| 70 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
| 71 | $this->bridgeFrom = $this->getResponseValue('bridge_from', '\phparia\Resources\Bridge', $client); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| @@ 30-74 (lines=45) @@ | ||
| 27 | * |
|
| 28 | * @author Brian Smith <[email protected]> |
|
| 29 | */ |
|
| 30 | class ChannelEnteredBridge extends Event implements IdentifiableEventInterface |
|
| 31 | { |
|
| 32 | /** |
|
| 33 | * @var Bridge |
|
| 34 | */ |
|
| 35 | private $bridge; |
|
| 36 | ||
| 37 | /** |
|
| 38 | * @var Channel |
|
| 39 | */ |
|
| 40 | private $channel; |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return Bridge |
|
| 44 | */ |
|
| 45 | public function getBridge() |
|
| 46 | { |
|
| 47 | return $this->bridge; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @return Channel |
|
| 52 | */ |
|
| 53 | public function getChannel() |
|
| 54 | { |
|
| 55 | return $this->channel; |
|
| 56 | } |
|
| 57 | ||
| 58 | public function getEventId() |
|
| 59 | { |
|
| 60 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @param AriClient $client |
|
| 65 | * @param string $response |
|
| 66 | */ |
|
| 67 | public function __construct(AriClient $client, $response) |
|
| 68 | { |
|
| 69 | parent::__construct($client, $response); |
|
| 70 | ||
| 71 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
| 72 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
| 73 | } |
|
| 74 | } |
|
| 75 | ||
| @@ 30-74 (lines=45) @@ | ||
| 27 | * |
|
| 28 | * @author Brian Smith <[email protected]> |
|
| 29 | */ |
|
| 30 | class ChannelLeftBridge extends Event implements IdentifiableEventInterface |
|
| 31 | { |
|
| 32 | /** |
|
| 33 | * @var Bridge |
|
| 34 | */ |
|
| 35 | private $bridge; |
|
| 36 | ||
| 37 | /** |
|
| 38 | * @var Channel |
|
| 39 | */ |
|
| 40 | private $channel; |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return Bridge |
|
| 44 | */ |
|
| 45 | public function getBridge() |
|
| 46 | { |
|
| 47 | return $this->bridge; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @return Channel |
|
| 52 | */ |
|
| 53 | public function getChannel() |
|
| 54 | { |
|
| 55 | return $this->channel; |
|
| 56 | } |
|
| 57 | ||
| 58 | public function getEventId() |
|
| 59 | { |
|
| 60 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @param AriClient $client |
|
| 65 | * @param string $response |
|
| 66 | */ |
|
| 67 | public function __construct(AriClient $client, $response) |
|
| 68 | { |
|
| 69 | parent::__construct($client, $response); |
|
| 70 | ||
| 71 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
| 72 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
| 73 | } |
|
| 74 | } |
|
| 75 | ||
| @@ 29-73 (lines=45) @@ | ||
| 26 | * |
|
| 27 | * @author Brian Smith <[email protected]> |
|
| 28 | */ |
|
| 29 | class ChannelTalkingFinished extends Event implements IdentifiableEventInterface |
|
| 30 | { |
|
| 31 | /** |
|
| 32 | * @var Channel The channel on which talking completed. |
|
| 33 | */ |
|
| 34 | private $channel; |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @var int The length of time, in milliseconds, that talking was detected on the channel |
|
| 38 | */ |
|
| 39 | private $duration; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @return Channel The channel on which talking completed. |
|
| 43 | */ |
|
| 44 | public function getChannel() |
|
| 45 | { |
|
| 46 | return $this->channel; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @return int The length of time, in milliseconds, that talking was detected on the channel |
|
| 51 | */ |
|
| 52 | public function getDuration() |
|
| 53 | { |
|
| 54 | return $this->duration; |
|
| 55 | } |
|
| 56 | ||
| 57 | public function getEventId() |
|
| 58 | { |
|
| 59 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @param AriClient $client |
|
| 64 | * @param string $response |
|
| 65 | */ |
|
| 66 | public function __construct(AriClient $client, $response) |
|
| 67 | { |
|
| 68 | parent::__construct($client, $response); |
|
| 69 | ||
| 70 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
| 71 | $this->duration = $this->getResponseValue('duration'); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| @@ 29-73 (lines=45) @@ | ||
| 26 | * |
|
| 27 | * @author Brian Smith <[email protected]> |
|
| 28 | */ |
|
| 29 | class BridgeVideoSourceChanged extends Event implements IdentifiableEventInterface |
|
| 30 | { |
|
| 31 | /** |
|
| 32 | * @var Bridge |
|
| 33 | */ |
|
| 34 | private $bridge; |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @var string (optional) |
|
| 38 | */ |
|
| 39 | private $oldVideoSourceId; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @return Bridge |
|
| 43 | */ |
|
| 44 | public function getBridge() |
|
| 45 | { |
|
| 46 | return $this->bridge; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @return string (optional) |
|
| 51 | */ |
|
| 52 | public function getOldVideoSourceId() |
|
| 53 | { |
|
| 54 | return $this->oldVideoSourceId; |
|
| 55 | } |
|
| 56 | ||
| 57 | public function getEventId() |
|
| 58 | { |
|
| 59 | return "{$this->getType()}_{$this->getBridge()->getId()}"; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @param AriClient $client |
|
| 64 | * @param string $response |
|
| 65 | */ |
|
| 66 | public function __construct(AriClient $client, $response) |
|
| 67 | { |
|
| 68 | parent::__construct($client, $response); |
|
| 69 | ||
| 70 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
| 71 | $this->oldVideoSourceId = $this->getResponseValue('old_video_source_id'); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||