com.lajospolya.spotifyapiwrapper.response.AuthorizingToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-api-wrapper Show documentation
Show all versions of spotify-api-wrapper Show documentation
This project wraps the Spotify public API in order to allow users to intuitively use it
package com.lajospolya.spotifyapiwrapper.response;
/**
* @author Lajos Polya
* Represent the response of PostAuthorizationCodeFlow, PostClientCredentialsFlow, and PostRefresh token as described
* at https://developer.spotify.com/documentation/general/guides/authorization-guide/
*/
public class AuthorizingToken
{
private String access_token;
private String token_type;
private Integer expires_in;
private String scope;
// Only returned by Authorization Code Flow
private String refresh_token = null;
public String getAccessToken()
{
return access_token;
}
public void setAccessToken(String access_token)
{
this.access_token = access_token;
}
public String getTokenType()
{
return token_type;
}
public void setTokenType(String token_type)
{
this.token_type = token_type;
}
public Integer getExpiresIn()
{
return expires_in;
}
public void setExpiresIn(Integer expires_in)
{
this.expires_in = expires_in;
}
public String getScope()
{
return scope;
}
public void setScope(String scope)
{
this.scope = scope;
}
public String getRefresh_token()
{
return refresh_token;
}
public void setRefresh_token(String refresh_token)
{
this.refresh_token = refresh_token;
}
}