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