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

com.mizhousoft.weixin.common.model.WxAccessToken Maven / Gradle / Ivy

The newest version!
package com.mizhousoft.weixin.common.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.mizhousoft.weixin.common.WxError;

/**
 * 微信访问Token
 *
 */
public class WxAccessToken extends WxError
{
	// Token
	@JsonProperty("access_token")
	private String accessToken;

	// Token过期时间
	@JsonProperty("expires_in")
	private int expiresIn = -1;

	/**
	 * 获取accessToken
	 * 
	 * @return
	 */
	public String getAccessToken()
	{
		return accessToken;
	}

	/**
	 * 设置accessToken
	 * 
	 * @param accessToken
	 */
	public void setAccessToken(String accessToken)
	{
		this.accessToken = accessToken;
	}

	/**
	 * 获取expiresIn
	 * 
	 * @return
	 */
	public int getExpiresIn()
	{
		return expiresIn;
	}

	/**
	 * 设置expiresIn
	 * 
	 * @param expiresIn
	 */
	public void setExpiresIn(int expiresIn)
	{
		this.expiresIn = expiresIn;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy