protected JustGivingClientBase(ClientConfiguration clientConfiguration, IHttpClient httpClient, IAccountApi accountApi, IDonationApi donationApi, IPageApi pageApi, ISearchApi searchApi, ICharityApi charityApi, IEventApi eventApi, ITeamApi teamApi) { if(httpClient == null) { throw new ArgumentNullException("httpClient", "httpClient must not be null to access the api."); } HttpClient = httpClient; HttpClient.ConnectionTimeOut = TimeSpan.FromMinutes(3); Account = accountApi; Donation = donationApi; Page = pageApi; Search = searchApi; Charity = charityApi; Event = eventApi; Team = teamApi; Configuration = clientConfiguration; InitApis(HttpClient, clientConfiguration); }
public JustGivingClient(ClientConfiguration clientConfiguration, IHttpClient httpClient, IAccountApi accountApi, IDonationApi donationApi, IPageApi pageApi, ISearchApi searchApi, ICharityApi charityApi, IEventApi eventApi, ITeamApi teamApi, IOneSearchApi oneSearch, ICountryApi countryApi, ICurrencyApi currencyApi, IProjectApi projectApi) : base( clientConfiguration, httpClient, accountApi, donationApi, pageApi, searchApi, charityApi, eventApi, teamApi, oneSearch, countryApi, currencyApi, projectApi) { }
protected JustGivingClientBase(ClientConfiguration clientConfiguration, IHttpClient httpClient, IAccountApi accountApi, IDonationApi donationApi, IPageApi pageApi, ISearchApi searchApi, ICharityApi charityApi, IEventApi eventApi, ITeamApi teamApi, IOneSearchApi oneSearch, ICountryApi country, ICurrencyApi currency, IProjectApi project) { if (httpClient == null) { throw new ArgumentNullException("httpClient", "httpClient must not be null to access the api."); } HttpClient = httpClient; HttpClient.ConnectionTimeOut = TimeSpan.FromMinutes(3); Account = accountApi; Donation = donationApi; Page = pageApi; Search = searchApi; Charity = charityApi; Event = eventApi; Team = teamApi; OneSearch = oneSearch; Country = country; Currency = currency; Project = project; Configuration = clientConfiguration; InitApis(HttpClient, clientConfiguration); }
public JustGivingClient(ClientConfiguration clientConfiguration, IHttpClient httpClient, IAccountApi accountApi, IDonationApi donationApi, IPageApi pageApi, ISearchApi searchApi, ICharityApi charityApi, IEventApi eventApi, ITeamApi teamApi): base(clientConfiguration, httpClient, accountApi, donationApi, pageApi, searchApi, charityApi, eventApi, teamApi) { }