public enum StravaFollowerState extends Enum<StravaFollowerState>
Status of an athlete's follower relationship with another athlete
| Enum Constant and Description |
|---|
ACCEPTED
Follower has been accepted
|
BLOCKED
Follower has been blocked
|
PENDING
Follower has been requested but neither accepted nor blocked at this time
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaFollowerState |
create(String id)
Used by JSON deserialisation
|
String |
getDescription() |
String |
getId() |
String |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaFollowerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaFollowerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaFollowerState PENDING
public static final StravaFollowerState ACCEPTED
public static final StravaFollowerState BLOCKED
public static final StravaFollowerState UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaFollowerState[] values()
for (StravaFollowerState c : StravaFollowerState.values()) System.out.println(c);
public static StravaFollowerState 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 String getValue()
StravaFollowerState to be used with the Strava APIFollowerStateSerializer.serialize(StravaFollowerState, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public static StravaFollowerState create(String id)
id - The string representation of a StravaFollowerState as returned by the Strava APIStravaFollowerState, or UNKNOWN if there is no matchpublic String getId()
public String toString()
toString in class Enum<StravaFollowerState>Enum.toString()public String getDescription()
Copyright © 2015 Dan Shannon. All rights reserved.