Ejemplo n.º 1
0
        /// <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());
        }
Ejemplo n.º 2
0
        /// <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()));
        }
Ejemplo n.º 3
0
        public async Task <Stats> GetStatsAsync()
        {
            AthleteClient client = new AthleteClient(Authentication);

            return(await GetStatsAsync((await client.GetAthleteAsync()).Id.ToString()));
        }