public enum StravaResourceState extends Enum<StravaResourceState>
State of a resource returned from Strava.
| Enum Constant and Description |
|---|
DETAILED
This is a detailed representation of the resource
|
META
This is a representation of the resource which contains the id ONLY (other than the resource state)
|
SUMMARY
This is a summary representation of the resource
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
UPDATING
Resource is currently being updated
|
| Modifier and Type | Method and Description |
|---|---|
static StravaResourceState |
create(Integer id)
Used by JSON deserialisation
|
String |
getDescription() |
Integer |
getId() |
Integer |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaResourceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaResourceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaResourceState UPDATING
public static final StravaResourceState META
public static final StravaResourceState SUMMARY
public static final StravaResourceState DETAILED
public static final StravaResourceState UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaResourceState[] values()
for (StravaResourceState c : StravaResourceState.values()) System.out.println(c);
public static StravaResourceState 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 Integer getValue()
StravaResourceState to be used with the Strava APIResourceStateSerializer.serialize(StravaResourceState, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public static StravaResourceState create(Integer id)
id - The integer representation of this StravaResourceState as returned by the Strava APIStravaResourceState, or UNKNOWN if there is no matchpublic Integer getId()
public String getDescription()
public String toString()
toString in class Enum<StravaResourceState>Enum.toString()Copyright © 2015 Dan Shannon. All rights reserved.