public enum AuthorisationApprovalPrompt extends Enum<AuthorisationApprovalPrompt>
Use FORCE to always show the authorisation prompt even if the user has already authorised the current application
Default is AUTO
| Enum Constant and Description |
|---|
AUTO
Tells Strava's authorisation process not to show the authorisation prompt page if the user hqs already authorised the application with the requested authorisation scope(s)
|
FORCE
Forces Strava's authorisation process to show the authorisation prompt page, even if the user has already authorised the application with the requested authorisation scope(s)
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static AuthorisationApprovalPrompt |
create(String id)
Used by
AuthorisationApprovalPromptSerializer.deserialize(com.google.gson.JsonElement, java.lang.reflect.Type, com.google.gson.JsonDeserializationContext) when deserialising JSON returned by the Strava API |
String |
getId()
Note that this is also used by
AuthorisationApprovalPromptSerializer.serialize(AuthorisationApprovalPrompt, java.lang.reflect.Type, com.google.gson.JsonSerializationContext) when serialising to JSON |
String |
toString() |
static AuthorisationApprovalPrompt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorisationApprovalPrompt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorisationApprovalPrompt FORCE
Forces Strava's authorisation process to show the authorisation prompt page, even if the user has already authorised the application with the requested authorisation scope(s)
public static final AuthorisationApprovalPrompt AUTO
Tells Strava's authorisation process not to show the authorisation prompt page if the user hqs already authorised the application with the requested authorisation scope(s)
public static final AuthorisationApprovalPrompt UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static AuthorisationApprovalPrompt[] values()
for (AuthorisationApprovalPrompt c : AuthorisationApprovalPrompt.values()) System.out.println(c);
public static AuthorisationApprovalPrompt 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 AuthorisationApprovalPrompt create(String id)
Used by AuthorisationApprovalPromptSerializer.deserialize(com.google.gson.JsonElement, java.lang.reflect.Type, com.google.gson.JsonDeserializationContext) when deserialising JSON returned by the Strava API
id - The text representation returned by StravaAuthorisationApprovalPrompt with the correct idpublic String getId()
Note that this is also used by AuthorisationApprovalPromptSerializer.serialize(AuthorisationApprovalPrompt, java.lang.reflect.Type, com.google.gson.JsonSerializationContext) when serialising to JSON
public String toString()
toString in class Enum<AuthorisationApprovalPrompt>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.