Table of Contents

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

string

FollowerCount

Follower count of the athlete, i.e., number of people following the athlete.

public int FollowerCount { get; }

Property Value

int

FriendCount

Friend count of the athlete, i.e., number of people the athlete is following.

public int FriendCount { get; }

Property Value

int

Id

The unique identifier of the athlete.

public long Id { get; }

Property Value

long

LastName

The athlete's last name.

public string LastName { get; }

Property Value

string

ResourceState

Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail"

public ResourceStates ResourceState { get; }

Property Value

ResourceStates

Username

The username of the athlete.

public string Username { get; }

Property Value

string

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

json string

Json 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.