public enum StravaPhotoSource extends Enum<StravaPhotoSource> implements StravaReferenceType<Integer>
Identifies the source of a photo which has been attached to an activity
| Enum Constant and Description |
|---|
INSTAGRAM
Photo from Instagram
|
STRAVA
Photo uploaded directly to Strava
|
UNKNOWN
Unknown
|
| Modifier and Type | Method and Description |
|---|---|
static StravaPhotoSource |
create(Integer id)
Used by JSON deserialisation
|
String |
getDescription() |
Integer |
getId() |
Integer |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaPhotoSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaPhotoSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaPhotoSource STRAVA
public static final StravaPhotoSource INSTAGRAM
public static final StravaPhotoSource UNKNOWN
public static StravaPhotoSource[] values()
for (StravaPhotoSource c : StravaPhotoSource.values()) System.out.println(c);
public static StravaPhotoSource 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 StravaPhotoSource create(Integer id)
id - The integer representation of the StravaClimbCategory as returned by the Strava APIStravaClimbCategory, or StravaClimbCategory.UNKNOWN if there is no matchClimbCategorySerializer.deserialize(com.google.gson.JsonElement, java.lang.reflect.Type, com.google.gson.JsonDeserializationContext)public String getDescription()
getDescription in interface StravaReferenceType<Integer>public Integer getId()
getId in interface StravaReferenceType<Integer>public Integer getValue()
getValue in interface StravaReferenceType<Integer>ClimbCategorySerializer.serialize(StravaClimbCategory, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public String toString()
toString in interface StravaReferenceType<Integer>toString in class Enum<StravaPhotoSource>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.