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

com.lajospolya.spotifyapiwrapper.response.AuthorizingToken Maven / Gradle / Ivy

Go to download

This project wraps the Spotify public API in order to allow users to intuitively use it

There is a newer version: 3.0.RELEASE
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy