Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
        }