public enum StravaStreamType extends Enum<StravaStreamType> implements StravaReferenceType<String>
Data stream types
| Enum Constant and Description |
|---|
ALTITUDE
Altitude
|
CADENCE
Cadence
|
DISTANCE
Distance
|
GRADE
Grade
|
HEARTRATE
Heart rate
|
MAPPOINT
Map points (locations)
|
MOVING
Moving (as a series of booleans, indicating whether the athlete was moving or not at each point
|
POWER
Power
|
TEMPERATURE
Temperature
|
TIME
Time
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
VELOCITY
Speed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaStreamType |
create(String id)
Used by JSON deserialisation
|
String |
getDescription() |
String |
getId() |
String |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaStreamType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaStreamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaStreamType TIME
public static final StravaStreamType MAPPOINT
public static final StravaStreamType DISTANCE
public static final StravaStreamType ALTITUDE
public static final StravaStreamType VELOCITY
public static final StravaStreamType HEARTRATE
public static final StravaStreamType CADENCE
public static final StravaStreamType POWER
public static final StravaStreamType TEMPERATURE
public static final StravaStreamType MOVING
public static final StravaStreamType GRADE
public static final StravaStreamType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaStreamType[] values()
for (StravaStreamType c : StravaStreamType.values()) System.out.println(c);
public static StravaStreamType 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 StravaStreamType create(String id)
id - The string representation of a StravaStreamType as returned by the Strava APIStravaStreamType, or UNKNOWN if there is no matchpublic String getDescription()
getDescription in interface StravaReferenceType<String>public String getId()
getId in interface StravaReferenceType<String>public String getValue()
getValue in interface StravaReferenceType<String>StravaStreamType to be used with the Strava APIStreamTypeSerializer.serialize(StravaStreamType, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public String toString()
toString in interface StravaReferenceType<String>toString in class Enum<StravaStreamType>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.