Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }