| | |
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | public static final int FAIL = 0;
|
| | | public static final int SUCCESS = 1;
|
| | | public static final int SUCCESS = 0;
|
| | | public static final int FAIL = 1;
|
| | | public static final int NO_PERMISSION = 2;
|
| | | private String msg = "success";
|
| | | private int code = SUCCESS;
|
| | | private String message = "success";
|
| | | private int errno = SUCCESS;
|
| | | private T data;
|
| | | public ResultBean() {
|
| | | super();
|
| | |
| | |
|
| | | public ResultBean(Throwable e) {
|
| | | super();
|
| | | this.msg = e.toString();
|
| | | this.code = FAIL;
|
| | | this.message = e.toString();
|
| | | this.errno = FAIL;
|
| | | }
|
| | | public ResultBean(String msg, int code) {
|
| | | public ResultBean(String message, int errno) {
|
| | | super();
|
| | | this.msg = msg;
|
| | | this.code = code;
|
| | | this.message = message;
|
| | | this.errno = errno;
|
| | | }
|
| | | public ResultBean(int code) {
|
| | | public ResultBean(int errno) {
|
| | | super();
|
| | | this.code = code;
|
| | | this.errno = errno;
|
| | | }
|
| | | }
|