eleme.openapi.sdk.oauth.response.Token Maven / Gradle / Ivy
The newest version!
package eleme.openapi.sdk.oauth.response;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Token extends ErrorResponse {
@JsonProperty("access_token")
private String accessToken;
@JsonProperty("token_type")
private String tokenType;
@JsonProperty("expires_in")
private long expires;
@JsonProperty("refresh_token")
private String refreshToken;
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public String getTokenType() {
return tokenType;
}
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
public long getExpires() {
return expires;
}
public void setExpires(long expires) {
this.expires = expires;
}
public String getRefreshToken() {
return refreshToken;
}
public void setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
}
@Override
public String toString() {
return "Token{" +
"accessToken='" + accessToken + '\'' +
", tokenType='" + tokenType + '\'' +
", expires=" + expires +
", refreshToken='" + refreshToken + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy