No Description

APIResponse.class.php 651B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. class APIResponse {
  3. /**
  4. * status code
  5. *
  6. * @var int
  7. */
  8. var $statusCode;
  9. /**
  10. * result of api, the type base on the calling API defination.
  11. *
  12. * @var unknown
  13. */
  14. var $result;
  15. /**
  16. * exception if there are some error when calling API.
  17. *
  18. * @var unknown
  19. */
  20. var $exception;
  21. /**
  22. * respponse charset
  23. *
  24. * @var String
  25. */
  26. var $charset = "UTF-8";
  27. /**
  28. * response encoding
  29. *
  30. * @var String
  31. */
  32. var $encoding;
  33. /**
  34. * the response wrapper, maybe API return addtional information(e.g.
  35. * calling cost time), the wrapper include those information.
  36. *
  37. * @var unknown
  38. */
  39. var $responseWrapper;
  40. }