mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
32 lines
617 B
Java
32 lines
617 B
Java
package chanjarster.weixin.bean;
|
|
|
|
import chanjarster.weixin.util.json.WxGsonBuilder;
|
|
|
|
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);
|
|
}
|
|
|
|
}
|