public enum AuthorisationResponseType extends Enum<AuthorisationResponseType>
Valid authorisation response types
As of Strava API v3.0, this value must be set to CODE
| Enum Constant and Description |
|---|
CODE
Currently Strava requires the use of this value when exchanging authorisation via OAuth.
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static AuthorisationResponseType |
create(String id)
Required by GSON serialiser
|
String |
getId() |
String |
toString() |
static AuthorisationResponseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorisationResponseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorisationResponseType CODE
Currently Strava requires the use of this value when exchanging authorisation via OAuth. This is the only valid value.
public static final AuthorisationResponseType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static AuthorisationResponseType[] values()
for (AuthorisationResponseType c : AuthorisationResponseType.values()) System.out.println(c);
public static AuthorisationResponseType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static AuthorisationResponseType create(String id)
id - The String value of the idAuthorisationResponseType corresponding to the id, or UNKNOWN if no such instance is available.public String getId()
public String toString()
toString in class Enum<AuthorisationResponseType>Enum.toString()Copyright © 2015 Dan Shannon. All rights reserved.