PhalApiClientResponse.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. namespace PhalApiClientSDK
  3. {
  4. /**
  5. * 接口返回结果
  6. *
  7. * - 与接口返回的格式对应,即有:ret/data/msg
  8. */
  9. public class PhalApiClientResponse
  10. {
  11. public int ret { get; set; }
  12. public dynamic data { get; set; }
  13. public String msg { get; set; }
  14. /**
  15. * 完全构造函数
  16. * @param int ret
  17. * @param JSONObject data
  18. * @param String msg
  19. */
  20. public PhalApiClientResponse(int ret, dynamic data, String msg)
  21. {
  22. this.ret = ret;
  23. this.data = data;
  24. this.msg = msg;
  25. }
  26. public PhalApiClientResponse(int ret, dynamic data)
  27. {
  28. this.ret = ret;
  29. this.data = data;
  30. this.msg = "";
  31. }
  32. public PhalApiClientResponse(int ret)
  33. {
  34. this.ret = ret;
  35. this.data = "";
  36. this.msg = "";
  37. }
  38. public PhalApiClientResponse()
  39. {
  40. }
  41. }
  42. }