Class Athlete
- Namespace
- Tudormobile.Strava.Model
- Assembly
- Tudormobile.Strava.dll
A Strava user, a.k.a "Athlete".
public class Athlete
- Inheritance
-
Athlete
- Inherited Members
Properties
FirstName
The athlete's first name.
public string FirstName { get; }
Property Value
FollowerCount
Follower count of the athlete, i.e., number of people following the athlete.
public int FollowerCount { get; }
Property Value
FriendCount
Friend count of the athlete, i.e., number of people the athlete is following.
public int FriendCount { get; }
Property Value
Id
The unique identifier of the athlete.
public long Id { get; }
Property Value
LastName
The athlete's last name.
public string LastName { get; }
Property Value
ResourceState
Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail"
public ResourceStates ResourceState { get; }
Property Value
Username
The username of the athlete.
public string Username { get; }
Property Value
Methods
Empty()
Create an empty athlete object.
public static Athlete Empty()
Returns
- Athlete
Empty Athlete object.
FromJson(string)
Create an Athlete from Json data.
public static Athlete? FromJson(string json)
Parameters
jsonstringJson text representing the athlete.
Returns
- Athlete
A new Athlete object.
ToJson()
UTF8 json string representing the athlete.
public string ToJson()
Returns
- string
Json representation of the athlete.