public class StravaSegmentEffort extends Object implements StravaCacheable<Long>
A segment effort represents an athlete's attempt at a segment. It can also be thought of as a portion of a ride that covers a segment. The object is returned in summary or detailed representations. They are currently the same.
| Constructor and Description |
|---|
StravaSegmentEffort() |
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public List<StravaAchievement> getAchievements()
public StravaActivity getActivity()
public StravaAthlete getAthlete()
public StravaAthleteSegmentStats getAthleteSegmentStats()
public Float getAverageCadence()
public Float getAverageHeartrate()
public Float getAverageWatts()
public Boolean getDeviceWatts()
public Float getDistance()
public Integer getElapsedTime()
public Integer getEndIndex()
public Boolean getHidden()
public Long getId()
getId in interface StravaCacheable<Long>public Boolean getIsKom()
public Integer getKomRank()
public Integer getMaxHeartrate()
public Integer getMovingTime()
public String getName()
public Integer getPrRank()
public StravaResourceState getResourceState()
getResourceState in interface StravaCacheable<Long>public StravaSegment getSegment()
public ZonedDateTime getStartDate()
public LocalDateTime getStartDateLocal()
public Integer getStartIndex()
public int hashCode()
hashCode in class ObjectObject.hashCode()public void setAchievements(List<StravaAchievement> achievements)
achievements - the achievements to setpublic void setActivity(StravaActivity activity)
activity - the activity to setpublic void setAthlete(StravaAthlete athlete)
athlete - the athlete to setpublic void setAthleteSegmentStats(StravaAthleteSegmentStats athleteSegmentStats)
athleteSegmentStats - the athleteSegmentStats to setpublic void setAverageCadence(Float averageCadence)
averageCadence - the averageCadence to setpublic void setAverageHeartrate(Float averageHeartrate)
averageHeartrate - the averageHeartrate to setpublic void setAverageWatts(Float averageWatts)
averageWatts - the averageWatts to setpublic void setDeviceWatts(Boolean deviceWatts)
deviceWatts - the deviceWatts to setpublic void setDistance(Float distance)
distance - the distance to setpublic void setElapsedTime(Integer elapsedTime)
elapsedTime - the elapsedTime to setpublic void setEndIndex(Integer endIndex)
endIndex - the endIndex to setpublic void setHidden(Boolean hidden)
hidden - the hidden to setpublic void setId(Long id)
id - the id to setpublic void setIsKom(Boolean isKom)
isKom - the isKom to setpublic void setKomRank(Integer komRank)
komRank - the komRank to setpublic void setMaxHeartrate(Integer maxHeartrate)
maxHeartrate - the maxHeartrate to setpublic void setMovingTime(Integer movingTime)
movingTime - the movingTime to setpublic void setName(String name)
name - the name to setpublic void setPrRank(Integer prRank)
prRank - the prRank to setpublic void setResourceState(StravaResourceState resourceState)
resourceState - the resourceState to setpublic void setSegment(StravaSegment segment)
segment - the segment to setpublic void setStartDate(ZonedDateTime startDate)
startDate - the startDate to setpublic void setStartDateLocal(LocalDateTime startDateLocal)
startDateLocal - the startDateLocal to setpublic void setStartIndex(Integer startIndex)
startIndex - the startIndex to setpublic String toString()
toString in class ObjectObject.toString()Copyright © 2016 Dan Shannon. All rights reserved.