public class StravaGear extends Object implements StravaCacheable<String>
StravaGear represents equipment used during an StravaActivity. Is either a bike, or shoes at present.
The object is returned in summary or detailed representations.
| Constructor and Description |
|---|
StravaGear()
No args constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBrandName() |
String |
getDescription() |
Float |
getDistance() |
StravaFrameType |
getFrameType() |
StravaGearType |
getGearType() |
String |
getId() |
String |
getModelName() |
String |
getName() |
Boolean |
getPrimary() |
StravaResourceState |
getResourceState() |
int |
hashCode() |
void |
setBrandName(String brandName) |
void |
setDescription(String description) |
void |
setDistance(Float distance) |
void |
setFrameType(StravaFrameType frameType) |
void |
setGearType(StravaGearType gearType) |
void |
setId(String id) |
void |
setModelName(String modelName) |
void |
setName(String name) |
void |
setPrimary(Boolean primary) |
void |
setResourceState(StravaResourceState resourceState) |
String |
toString() |
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String getBrandName()
public String getDescription()
public Float getDistance()
public StravaFrameType getFrameType()
public StravaGearType getGearType()
public String getId()
getId in interface StravaCacheable<String>public String getModelName()
public String getName()
public Boolean getPrimary()
public StravaResourceState getResourceState()
getResourceState in interface StravaCacheable<String>public int hashCode()
hashCode in class ObjectObject.hashCode()public void setBrandName(String brandName)
brandName - the brandName to setpublic void setDescription(String description)
description - the description to setpublic void setDistance(Float distance)
distance - the distance to setpublic void setFrameType(StravaFrameType frameType)
frameType - the frameType to setpublic void setGearType(StravaGearType gearType)
gearType - the gearType to setpublic void setId(String id)
id - The id of the gearpublic void setModelName(String modelName)
modelName - the modelName to setpublic void setName(String name)
name - the name to setpublic void setPrimary(Boolean primary)
primary - the primary to setpublic void setResourceState(StravaResourceState resourceState)
resourceState - the resourceState to setpublic String toString()
toString in class ObjectObject.toString()Copyright © 2016 Dan Shannon. All rights reserved.