/// <summary> /// Gets some stats of the currently authenticated user. /// </summary> /// <returns>Strava statistics of the currently authenticated user.</returns> public async Task<Stats> GetStatsAsync() { // Get the athlete AthleteClient client = new AthleteClient(base.Authentication); Athlete a = await client.GetAthleteAsync(); return await GetStatsAsync(a.Id.ToString()); }
/// <summary> /// Gets some stats of the currently authenticated user. /// </summary> /// <returns>Strava statistics of the currently authenticated user.</returns> public async Task <Stats> GetStatsAsync() { // Get the athlete AthleteClient client = new AthleteClient(base.Authentication); Athlete a = await client.GetAthleteAsync(); return(await GetStatsAsync(a.Id.ToString())); }
public async Task <Stats> GetStatsAsync() { AthleteClient client = new AthleteClient(Authentication); return(await GetStatsAsync((await client.GetAthleteAsync()).Id.ToString())); }