public enum AuthorisationScope extends Enum<AuthorisationScope>
view_private and/or write, leave blank for read-only permissions.
| Enum Constant and Description |
|---|
UNKNOWN
Should never occur but may if the Strava API behaviour has changed
|
VIEW_PRIVATE
This authorisation scope allows the Strava API to return data from within the authenticated user's privacy zones
|
WRITE
This authorisation scope allows the Strava API to write data - that is to update athlete details, activity details, and to make comments and give kudos to other riders' activities
|
| Modifier and Type | Method and Description |
|---|---|
static AuthorisationScope |
create(String id)
Used when deserialising JSON returned by the Strava API
|
String |
getDescription() |
String |
getId() |
String |
toString() |
static AuthorisationScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorisationScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorisationScope VIEW_PRIVATE
This authorisation scope allows the Strava API to return data from within the authenticated user's privacy zones
public static final AuthorisationScope WRITE
This authorisation scope allows the Strava API to write data - that is to update athlete details, activity details, and to make comments and give kudos to other riders' activities
public static final AuthorisationScope UNKNOWN
Should never occur but may if the Strava API behaviour has changed
public static AuthorisationScope[] values()
for (AuthorisationScope c : AuthorisationScope.values()) System.out.println(c);
public static AuthorisationScope 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 AuthorisationScope create(String id)
Used when deserialising JSON returned by the Strava API
id - String value returned by StravaAuthorisationScope, or UNKNOWN if there is no matchAuthorisationScopeSerializer.deserialize(com.google.gson.JsonElement, java.lang.reflect.Type, com.google.gson.JsonDeserializationContext)public String getDescription()
public String getId()
public String toString()
toString in class Enum<AuthorisationScope>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.