for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2014, Tobia De Koninck hey--at--ledfan.be
* This file is licensed under the AGPL version 3 or later.
* See the COPYING file.
*/
namespace OCA\Chat\OCH\Responses;
use \OCP\AppFramework\Http\JSONResponse;
class Success extends JSONResponse{
public function __construct($requestType, $action, $data=array()){
$data["status"] = "success";
parent::__construct(array(
"type" => $requestType . "::" . $action . "::response" ,
"data" => $data
));
}