| 1 | <?php |
||
| 15 | class Response |
||
| 16 | { |
||
| 17 | const ERROR_INTERNAL_SYSTEM = -32400; |
||
| 18 | const ERROR_INSUFFICIENT_PRIVILEGE = -32504; |
||
| 19 | const ERROR_INVALID_JSON_RPC_OBJECT = -32600; |
||
| 20 | const ERROR_METHOD_NOT_FOUND = -32601; |
||
| 21 | const ERROR_INVALID_AMOUNT = -31001; |
||
| 22 | const ERROR_TRANSACTION_NOT_FOUND = -31003; |
||
| 23 | const ERROR_INVALID_ACCOUNT = -31050; |
||
| 24 | const ERROR_COULD_NOT_CANCEL = -31007; |
||
| 25 | const ERROR_COULD_NOT_PERFORM = -31008; |
||
| 26 | const SUCCESS = 0; |
||
| 27 | |||
| 28 | public $request; |
||
| 29 | public $body; |
||
| 30 | public $code; |
||
| 31 | |||
| 32 | public function response($request, $body, $code){ |
||
| 55 | |||
| 56 | public function setRequest($request){ |
||
| 59 | } |
||
| 60 |