Example #1
0
 public Client(IAuthenticator authenticator)
 {
     _restClient = new RestClient(StravaClient.ApiBaseUrl) { Authenticator = authenticator };
     Athletes = new AthleteClient(this);
     Activities = new ActivityClient(this);
     Segments = new SegmentClient(this);
     Clubs = new ClubClient(this);
 }
Example #2
0
 public Client(IAuthenticator authenticator)
 {
     _restClient = new RestClient(StravaClient.ApiBaseUrl)
     {
         Authenticator = authenticator
     };
     Athletes   = new AthleteClient(this);
     Activities = new ActivityClient(this);
     Segments   = new SegmentClient(this);
     Clubs      = new ClubClient(this);
 }
Example #3
0
        public Client(IAuthenticator authenticator)
        {
            Authenticator = authenticator;
            _restClient   = new RestClient(StravaClient.ApiBaseUrl)
            {
                Authenticator = authenticator,
#if DEBUG
                HttpClientFactory = new MyHttpClientFactory(),
#endif
            };
            Athletes   = new AthleteClient(this);
            Activities = new ActivityClient(this);
            Segments   = new SegmentClient(this);
            Clubs      = new ClubClient(this);
        }