public class StravaProfile extends OAuth20Profile
Encapsulates a Strava athlete profile.
Exemple of a json sent by Strava: { "id": 1321007, "resource_state": 3, "firstname": "Adrian", "lastname": "Papusoi", "profile_medium": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/athletes\/1321007\/361713\/1\/medium.jpg", "profile": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/athletes\/1321007\/361713\/1\/large.jpg", "city": "Courbevoie", "state": "Île-de-France", "country": "France", "sex": "M", "friend": null, "follower": null, "premium": false, "created_at": "2012-11-13T10:13:38Z", "updated_at": "2014-12-17T13:30:39Z", "badge_type_id": 0, "follower_count": 24, "friend_count": 30, "mutual_friend_count": 0, "date_preference": "%d\/%m\/%Y", "measurement_preference": "meters", "email": "adrian.papusoi@gmail.com", "ftp": null, "clubs": [ { "id": 37365, "resource_state": 2, "name": "Amicale Cycliste des Baltringues de Longchamp", "profile_medium": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/clubs\/37365\/1022943\/1\/medium.jpg", "profile": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/clubs\/37365\/1022943\/1\/large.jpg" }, { "id": 45060, "resource_state": 2, "name": "VeloViewer", "profile_medium": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/clubs\/45060\/1141016\/3\/medium.jpg", "profile": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/clubs\/45060\/1141016\/3\/large.jpg" }, { "id": 21017, "resource_state": 2, "name": "Paris cycling meetup group", "profile_medium": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/clubs\/21017\/449495\/1\/medium.jpg", "profile": "http:\/\/dgalywyr863hv.cloudfront.net\/pictures\/clubs\/21017\/449495\/1\/large.jpg" } ], "bikes": [ { "id": "b1232920", "primary": false, "name": "BH G5", "resource_state": 2, "distance": 4587858 }, { "id": "b662369", "primary": false, "name": "Gitane '80s", "resource_state": 2, "distance": 371587 }, { "id": "b526413", "primary": false, "name": "Grand Canyon AL 6.0", "resource_state": 2, "distance": 362774 }, { "id": "b1534132", "primary": true, "name": "Kona Dr Good", "resource_state": 2, "distance": 1303618 } ], "shoes": [ ] }USERNAMElogger, SEPARATOR| Constructor and Description |
|---|
StravaProfile() |
| Modifier and Type | Method and Description |
|---|---|
protected AttributesDefinition |
getAttributesDefinition() |
List<StravaGear> |
getBikes() |
List<StravaClub> |
getClubs() |
String |
getCountry() |
Date |
getCreatedAt() |
String |
getDatePreference() |
String |
getDisplayName() |
String |
getEmail() |
String |
getFamilyName() |
String |
getFirstName() |
Integer |
getFollowerCount() |
Integer |
getFriendCount() |
Gender |
getGender() |
String |
getLocation() |
String |
getMeasurementPreference() |
String |
getPictureUrl() |
String |
getProfileMedium() |
String |
getProfileUrl() |
Integer |
getResourceState() |
List<StravaGear> |
getShoes() |
String |
getState() |
Date |
getUpdatedAt() |
Boolean |
isPremium() |
getAccessToken, setAccessTokengetLocale, getUsernameaddAttribute, addAttributes, addPermission, addRole, build, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, hasAccess, hasAllRoles, hasAnyRole, isRemembered, setId, setRemembered, toStringprotected AttributesDefinition getAttributesDefinition()
getAttributesDefinition in class UserProfilepublic String getFirstName()
getFirstName in class CommonProfilepublic String getFamilyName()
getFamilyName in class CommonProfilepublic String getDisplayName()
getDisplayName in class CommonProfilepublic String getEmail()
getEmail in class CommonProfilepublic String getPictureUrl()
getPictureUrl in class CommonProfilepublic String getProfileUrl()
getProfileUrl in class CommonProfilepublic String getLocation()
getLocation in class CommonProfilepublic Gender getGender()
getGender in class CommonProfilepublic Integer getResourceState()
public String getProfileMedium()
public String getState()
public String getCountry()
public Boolean isPremium()
public Date getCreatedAt()
public Date getUpdatedAt()
public Integer getFollowerCount()
public Integer getFriendCount()
public String getDatePreference()
public String getMeasurementPreference()
public List<StravaGear> getBikes()
public List<StravaGear> getShoes()
public List<StravaClub> getClubs()
Copyright © 2015. All Rights Reserved.