package net.tooan.ynpay.commons.webapp.json; import net.tooan.ynpay.commons.ErrorConstants; /** * Created with IntelliJ IDEA. * User: Jing * Date: 13-10-25 * Time: 下午2:26 */ public class Message { public Message(Integer code, String text) { this.code = code; this.text = text; } public Message(String text) { this(ErrorConstants.unknownErrCode, text); } private Integer code; private String text; public Integer getCode() { return code; } public void setCode(Integer code) { this.code = code; } public String getText() { return text; } public void setText(String text) { this.text = text; } }