-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release 4.2.0 and update branch
- Loading branch information
Manik Sachdeva
authored
Aug 13, 2018
1 parent
35f7e5e
commit cb6b39a
Showing
20 changed files
with
892 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/OpenTok/Exception/ForceDisconnectAuthenticationException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* Defines the exception thrown when you use an invalid API or secret and call the force disconnect method. | ||
*/ | ||
class ForceDisconnectAuthenticationException extends \OpenTok\Exception\AuthenticationException implements \OpenTok\Exception\ForceDisconnectException | ||
{ | ||
} |
15 changes: 15 additions & 0 deletions
15
src/OpenTok/Exception/ForceDisconnectConnectionException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* Defines an exception thrown when a call to a force disconnect method results in an error response from | ||
* the server. | ||
*/ | ||
class ForceDisconnectConnectionException extends \OpenTok\Exception\DomainException implements \OpenTok\Exception\ForceDisconnectException | ||
{ | ||
public function __construct($message, $code) | ||
{ | ||
parent::__construct($message, $code); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* The interface used by all exceptions resulting from calls to the signal API. | ||
*/ | ||
interface ForceDisconnectException | ||
{ | ||
} |
15 changes: 15 additions & 0 deletions
15
src/OpenTok/Exception/ForceDisconnectUnexpectedValueException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* Defines an exception thrown when a call to the force disconnect method results in an error due to an | ||
* unexpected value. | ||
*/ | ||
class ForceDisconnectUnexpectedValueException extends \OpenTok\Exception\UnexpectedValueException implements \OpenTok\Exception\ForceDisconnectException | ||
{ | ||
public function __construct($message, $code) | ||
{ | ||
parent::__construct($message, $code); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* Defines the exception thrown when you use an invalid API or secret and call a signal method. | ||
*/ | ||
class SignalAuthenticationException extends \OpenTok\Exception\AuthenticationException implements \OpenTok\Exception\SignalException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* Defines an exception thrown when a call to a signal method results in an error response from | ||
* the server. | ||
*/ | ||
class SignalConnectionException extends \OpenTok\Exception\DomainException implements \OpenTok\Exception\SignalException | ||
{ | ||
public function __construct($message, $code) | ||
{ | ||
parent::__construct($message, $code); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* The interface used by all exceptions resulting from calls to the signal API. | ||
*/ | ||
interface SignalException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace OpenTok\Exception; | ||
|
||
/** | ||
* Defines an exception thrown when a call to a signal method results in an error due to an | ||
* unexpected value. | ||
*/ | ||
class SignalUnexpectedValueException extends \OpenTok\Exception\UnexpectedValueException implements \OpenTok\Exception\SignalException | ||
{ | ||
public function __construct($message, $code) | ||
{ | ||
parent::__construct($message, $code); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace OpenTok; | ||
|
||
class Stream { | ||
|
||
private $data; | ||
|
||
public function __construct($streamData) | ||
{ | ||
|
||
$this->data = $streamData; | ||
} | ||
|
||
public function __get($name) | ||
{ | ||
switch ($name) { | ||
case 'id': | ||
case 'videoType': | ||
case 'name': | ||
case 'layoutClassList': | ||
return $this->data[$name]; | ||
break; | ||
default: | ||
return null; | ||
} | ||
} | ||
|
||
public function jsonSerialize() | ||
{ | ||
return $this->data; | ||
} | ||
} |
Oops, something went wrong.