Merge pull request #1269 from nextcloud/deprecate_ocs_response

Deprecate OCSRespone
This commit is contained in:
Lukas Reschke 2016-09-05 11:36:03 +02:00 committed by GitHub
commit e3a5767a29
1 changed files with 3 additions and 2 deletions

View File

@ -29,11 +29,10 @@
namespace OCP\AppFramework\Http;
use OCP\AppFramework\Http;
/**
* A renderer for OCS responses
* @since 8.1.0
* @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
*/
class OCSResponse extends Response {
@ -53,6 +52,7 @@ class OCSResponse extends Response {
* @param int|string $itemscount
* @param int|string $itemsperpage
* @since 8.1.0
* @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
*/
public function __construct($format, $statuscode, $message,
$data=[], $itemscount='',
@ -79,6 +79,7 @@ class OCSResponse extends Response {
/**
* @return string
* @since 8.1.0
* @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
*/
public function render() {
$r = new \OC_OCS_Result($this->data, $this->statuscode, $this->message);