You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
854 B

  1. package net.phalapi.sdk;
  2. /**
  3. * 接口返回结果
  4. *
  5. * - 与接口返回的格式对应,即有:ret/data/msg
  6. */
  7. public class PhalApiClientResponse {
  8. protected int ret;
  9. protected String data;
  10. protected String msg;
  11. /**
  12. * 完全构造函数
  13. * @param int ret
  14. * @param String data
  15. * @param String msg
  16. */
  17. public PhalApiClientResponse(int ret, String data, String msg) {
  18. this.ret = ret;
  19. this.data = data;
  20. this.msg = msg;
  21. }
  22. public PhalApiClientResponse(int ret, String data) {
  23. this(ret, data, "");
  24. }
  25. public PhalApiClientResponse(int ret) {
  26. this(ret, "", "");
  27. }
  28. public int getRet() {
  29. return this.ret;
  30. }
  31. public String getData() {
  32. return this.data;
  33. }
  34. public String getMsg() {
  35. return this.msg;
  36. }
  37. }