12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- class APIResponse {
-
- /**
- * status code
- *
- * @var int
- */
- var $statusCode;
-
- /**
- * result of api, the type base on the calling API defination.
- *
- * @var unknown
- */
- var $result;
-
- /**
- * exception if there are some error when calling API.
- *
- * @var unknown
- */
- var $exception;
-
- /**
- * respponse charset
- *
- * @var String
- */
- var $charset = "UTF-8";
-
- /**
- * response encoding
- *
- * @var String
- */
- var $encoding;
-
- /**
- * the response wrapper, maybe API return addtional information(e.g.
- * calling cost time), the wrapper include those information.
- *
- * @var unknown
- */
- var $responseWrapper;
- }
|