|
|
@ -30,54 +30,54 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
|
public class AccessTokenInfo {
|
|
|
|
public class AccessTokenInfo {
|
|
|
|
|
|
|
|
|
|
|
|
@XmlElement(required = true, name = "token_type")
|
|
|
|
@XmlElement(required = true, name = "tokenType")
|
|
|
|
private String token_type;
|
|
|
|
private String tokenType;
|
|
|
|
|
|
|
|
|
|
|
|
@XmlElement(required = true, name = "expires_in")
|
|
|
|
@XmlElement(required = true, name = "expiresIn")
|
|
|
|
private String expires_in;
|
|
|
|
private String expiresIn;
|
|
|
|
|
|
|
|
|
|
|
|
@XmlElement(required = true, name = "refresh_token")
|
|
|
|
@XmlElement(required = true, name = "refreshToken")
|
|
|
|
private String refresh_token;
|
|
|
|
private String refreshToken;
|
|
|
|
|
|
|
|
|
|
|
|
@XmlElement(required = true, name = "access_token")
|
|
|
|
@XmlElement(required = true, name = "accessToken")
|
|
|
|
private String access_token;
|
|
|
|
private String accessToken;
|
|
|
|
|
|
|
|
|
|
|
|
public AccessTokenInfo() {}
|
|
|
|
public AccessTokenInfo() {}
|
|
|
|
|
|
|
|
|
|
|
|
public String getToken_type() {
|
|
|
|
public String getTokenType() {
|
|
|
|
return token_type;
|
|
|
|
return tokenType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setToken_type(String token_type) {
|
|
|
|
public void setTokenType(String tokenType) {
|
|
|
|
this.token_type = token_type;
|
|
|
|
this.tokenType = tokenType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getExpires_in() {
|
|
|
|
public String getExpiresIn() {
|
|
|
|
return expires_in;
|
|
|
|
return expiresIn;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setExpires_in(String expires_in) {
|
|
|
|
public void setExpiresIn(String expiresIn) {
|
|
|
|
this.expires_in = expires_in;
|
|
|
|
this.expiresIn = expiresIn;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getRefresh_token() {
|
|
|
|
public String getRefreshToken() {
|
|
|
|
return refresh_token;
|
|
|
|
return refreshToken;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setRefresh_token(String refresh_token) {
|
|
|
|
public void setRefreshToken(String refreshToken) {
|
|
|
|
this.refresh_token = refresh_token;
|
|
|
|
this.refreshToken = refreshToken;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getAccess_token() {
|
|
|
|
public String getAccessToken() {
|
|
|
|
return access_token;
|
|
|
|
return accessToken;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setAccess_token(String access_token) {
|
|
|
|
public void setAccessToken(String accessToken) {
|
|
|
|
this.access_token = access_token;
|
|
|
|
this.accessToken = accessToken;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
public String toString() {
|
|
|
|
return access_token + " " + token_type + " " + refresh_token + " ";
|
|
|
|
return accessToken + " " + tokenType + " " + refreshToken + " ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|