All Downloads are FREE. Search and download functionalities are using the official Maven repository.

weixin.popular.bean.BaseResult Maven / Gradle / Ivy

Go to download

The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.

The newest version!
package weixin.popular.bean;

/**
 * 微信请求状态数据
 *
 * @author LiYi
 */
public class BaseResult {

  private static final String SUCCESS_CODE = "0";

  private String errcode;
  private String errmsg;

  public BaseResult() {
  }

  public BaseResult(String errcode, String errmsg) {
    this.errcode = errcode;
    this.errmsg = errmsg;
  }

  public String getErrcode() {
    return errcode;
  }

  public void setErrcode(String errcode) {
    this.errcode = errcode;
  }

  public String getErrmsg() {
    return errmsg;
  }

  public void setErrmsg(String errmsg) {
    this.errmsg = errmsg;
  }

  public boolean isSuccess() {
    return errcode == null || errcode.isEmpty() || errcode.equals(SUCCESS_CODE);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy