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