public enum StravaStreamResolutionType extends Enum<StravaStreamResolutionType>
Resolution type for requested/returned streams
| Enum Constant and Description |
|---|
HIGH
High resolution (10000 points)
|
LOW
Low resolution (100 points)
|
MEDIUM
Medium resolution (1000 points)
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaStreamResolutionType |
create(String id)
Used by JSON deserialisation
|
String |
getDescription() |
String |
getId() |
int |
getSize() |
String |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaStreamResolutionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaStreamResolutionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaStreamResolutionType LOW
public static final StravaStreamResolutionType MEDIUM
public static final StravaStreamResolutionType HIGH
public static final StravaStreamResolutionType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaStreamResolutionType[] values()
for (StravaStreamResolutionType c : StravaStreamResolutionType.values()) System.out.println(c);
public static StravaStreamResolutionType 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()
StravaStreamResolutionType to be used with the Strava APIStreamResolutionTypeSerializer.serialize(StravaStreamResolutionType, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public static StravaStreamResolutionType create(String id)
id - The string representation of a StravaStreamResolutionType returned by the Strava APIStravaStreamResolutionType, or UNKNOWN if there is no matchpublic String getId()
public String toString()
toString in class Enum<StravaStreamResolutionType>Enum.toString()public String getDescription()
public int getSize()
Copyright © 2015 Dan Shannon. All rights reserved.