/// <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(); Athlete a = await client.GetAthleteAsync(); return(await GetStatsAsync(a.Id.ToString())); }
//private readonly IAuthentication _authenticator; /// <summary> /// Initializes a new instance of the StravaClient class. /// </summary> /// <param name="authenticator">The IAuthentication object that holds a valid Access Token.</param> /// <seealso cref="WebAuthentication"/> /// <seealso cref="StaticAuthentication"/> public StravaClient() { Activities = new ActivityClient(); Athletes = new AthleteClient(); Clubs = new ClubClient(); Gear = new GearClient(); Segments = new SegmentClient(); Streams = new StreamClient(); Uploads = new UploadClient(); Efforts = new EffortClient(); Stats = new StatsClient(); Routes = new RouteClient(); }