public enum StravaActivityType extends Enum<StravaActivityType>
Possible values: ride, run, swim, workout, hike, walk, nordicski, alpineski, backcountryski, iceskate, inlineskate, kitesurf, rollerski, windsurf, workout, snowboard, snowshoe
Type detected from file upload overrides, uses athlete's default type if not specified
| Enum Constant and Description |
|---|
ALPINE_SKI
Alpine skiing
|
BACKCOUNTRY_SKI
Back-country skiing (off piste)
|
HIKE
Hike
|
ICE_SKATE
Ice skating
|
INLINE_SKATE
Inline skating (rollerblading)
|
KITESURF
Kite surfing
|
NORDIC_SKI
Nordic skiing (telemark)
|
RIDE
Bike ride
|
ROLLERSKI
Rollerskiing
|
RUN
Run
|
SNOWBOARD
Snowboarding
|
SNOWSHOE
Snowshoeing
|
SWIM
Swim
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
WALK
Walk
|
WINDSURF
Windsurfing
|
WORKOUT
Workout
|
| Modifier and Type | Method and Description |
|---|---|
static StravaActivityType |
create(String id) |
String |
getDescription() |
String |
getId() |
String |
getValue() |
String |
toString() |
static StravaActivityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaActivityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaActivityType RIDE
public static final StravaActivityType RUN
public static final StravaActivityType SWIM
public static final StravaActivityType WORKOUT
public static final StravaActivityType HIKE
public static final StravaActivityType WALK
public static final StravaActivityType NORDIC_SKI
public static final StravaActivityType ALPINE_SKI
public static final StravaActivityType BACKCOUNTRY_SKI
public static final StravaActivityType ICE_SKATE
public static final StravaActivityType INLINE_SKATE
public static final StravaActivityType KITESURF
public static final StravaActivityType ROLLERSKI
public static final StravaActivityType WINDSURF
public static final StravaActivityType SNOWBOARD
public static final StravaActivityType SNOWSHOE
public static final StravaActivityType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaActivityType[] values()
for (StravaActivityType c : StravaActivityType.values()) System.out.println(c);
public static StravaActivityType 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()
public static StravaActivityType create(String id)
id - The string representation of the activity type as returned by the Strava APIStravaActivityType with the matching id, or UNKNOWN if there is no matchActivityTypeSerializer.deserialize(com.google.gson.JsonElement, java.lang.reflect.Type, com.google.gson.JsonDeserializationContext)public String getId()
public String getDescription()
public String toString()
toString in class Enum<StravaActivityType>Enum.toString()Copyright © 2015 Dan Shannon. All rights reserved.