public class AuthenticationResponse extends Object implements android.os.Parcelable
AuthenticationResponse.Builder
or
parse from Uri
with fromUri(android.net.Uri)
Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationResponse.Builder
Use this builder to create an
AuthenticationResponse |
static class |
AuthenticationResponse.Type
The type of the authentication response.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<AuthenticationResponse> |
CREATOR |
Constructor and Description |
---|
AuthenticationResponse(android.os.Parcel source) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static AuthenticationResponse |
fromUri(android.net.Uri uri)
Parses the URI returned from the Spotify accounts service.
|
String |
getAccessToken() |
String |
getCode() |
String |
getError() |
int |
getExpiresIn() |
String |
getState() |
AuthenticationResponse.Type |
getType() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<AuthenticationResponse> CREATOR
public static AuthenticationResponse fromUri(android.net.Uri uri)
uri
- URIpublic AuthenticationResponse.Type getType()
public String getCode()
public String getAccessToken()
public String getState()
public String getError()
public int getExpiresIn()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable