@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class BridgeCreated extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Bridge |
|
33 | */ |
|
34 | private $bridge; |
|
35 | ||
36 | /** |
|
37 | * @return Bridge |
|
38 | */ |
|
39 | public function getBridge() |
|
40 | { |
|
41 | return $this->bridge; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getBridge()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class BridgeDestroyed extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Bridge |
|
33 | */ |
|
34 | private $bridge; |
|
35 | ||
36 | /** |
|
37 | * @return Bridge |
|
38 | */ |
|
39 | public function getBridge() |
|
40 | { |
|
41 | return $this->bridge; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getBridge()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelConnectedLine extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-60 (lines=32) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelCreated extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', 'phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | ||
60 | } |
|
61 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelStateChange extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', 'phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelTalkingStarted extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class PlaybackFinished extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Playback Playback control object |
|
33 | */ |
|
34 | private $playback; |
|
35 | ||
36 | /** |
|
37 | * @return Playback Playback control object |
|
38 | */ |
|
39 | public function getPlayback() |
|
40 | { |
|
41 | return $this->playback; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getPlayback()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->playback = $this->getResponseValue('playback', '\phparia\Resources\Playback', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class PlaybackStarted extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Playback Playback control object |
|
33 | */ |
|
34 | private $playback; |
|
35 | ||
36 | /** |
|
37 | * @return Playback Playback control object |
|
38 | */ |
|
39 | public function getPlayback() |
|
40 | { |
|
41 | return $this->playback; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getPlayback()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->playback = $this->getResponseValue('playback', '\phparia\Resources\Playback', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class RecordingFailed extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var LiveRecording Recording control object |
|
33 | */ |
|
34 | private $recording; |
|
35 | ||
36 | /** |
|
37 | * @return LiveRecording Recording control object |
|
38 | */ |
|
39 | public function getRecording() |
|
40 | { |
|
41 | return $this->recording; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getRecording()->getName()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->recording = $this->getResponseValue('recording', '\phparia\Resources\LiveRecording', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class RecordingFinished extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var LiveRecording Recording control object |
|
33 | */ |
|
34 | private $recording; |
|
35 | ||
36 | /** |
|
37 | * @return LiveRecording Recording control object |
|
38 | */ |
|
39 | public function getRecording() |
|
40 | { |
|
41 | return $this->recording; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getRecording()->getName()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->recording = $this->getResponseValue('recording', '\phparia\Resources\LiveRecording', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class RecordingStarted extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var LiveRecording Recording control object |
|
33 | */ |
|
34 | private $recording; |
|
35 | ||
36 | /** |
|
37 | * @return LiveRecording Recording control object |
|
38 | */ |
|
39 | public function getRecording() |
|
40 | { |
|
41 | return $this->recording; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getRecording()->getName()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->recording = $this->getResponseValue('recording', '\phparia\Resources\LiveRecording', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class StasisEnd extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |