2014-08-21 21:19:24 +08:00
|
|
|
package chanjarster.weixin.bean;
|
2014-08-18 16:48:20 +08:00
|
|
|
|
2014-08-24 14:18:31 +08:00
|
|
|
import chanjarster.weixin.util.json.WxGsonBuilder;
|
2014-08-18 16:48:20 +08:00
|
|
|
|
|
|
|
public class WxAccessToken {
|
|
|
|
|
|
|
|
private String access_token;
|
|
|
|
|
|
|
|
private int expires_in;
|
|
|
|
|
|
|
|
public String getAccess_token() {
|
|
|
|
return access_token;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAccess_token(String access_token) {
|
|
|
|
this.access_token = access_token;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getExpires_in() {
|
|
|
|
return expires_in;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setExpires_in(int expires_in) {
|
|
|
|
this.expires_in = expires_in;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static WxAccessToken fromJson(String json) {
|
|
|
|
return WxGsonBuilder.create().fromJson(json, WxAccessToken.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|