public async Task <ResponseWrapper <Repository> > Get(string projectKey, RequestOptions requestOptions = null) { string requestUrl = UrlBuilder.FormatRestApiUrl(MANY_REPOSITORIES, requestOptions, projectKey); ResponseWrapper <Repository> response = await _httpWorker.GetAsync <ResponseWrapper <Repository> >(requestUrl); return(response); }
public async Task <ResponseWrapper <Branch> > Get(string projectKey, string repositorySlug, RequestOptions requestOptions = null) { string requestUrl = UrlBuilder.FormatRestApiUrl(MANY_BRANCHES, requestOptions, projectKey, repositorySlug); ResponseWrapper <Branch> response = await _httpWorker.GetAsync <ResponseWrapper <Branch> >(requestUrl).ConfigureAwait(false); return(response); }
public async Task <List <DefaultReviewerCondition> > Get(string projectKey, string repositorySlug, RequestOptions requestOptions = null) { string requestUrl = UrlBuilder.FormatRestApiUrl(MANY_CONDITIONS, requestOptions, projectKey, repositorySlug); //ResponseWrapper<DefaultReviewCondition> response = await _httpWorker.GetAsync<ResponseWrapper<DefaultReviewCondition>>(requestUrl).ConfigureAwait(false); List <DefaultReviewerCondition> response = await _httpWorker.GetAsync <List <DefaultReviewerCondition> >(requestUrl).ConfigureAwait(false); return(response); }
public async Task <ResponseWrapper <Project> > Get(RequestOptions requestOptions = null) { string requestUrl = UrlBuilder.FormatRestApiUrl(MANY_PROJECTS, requestOptions); ResponseWrapper <Project> response = await _httpWorker.GetAsync <ResponseWrapper <Project> >(requestUrl).ConfigureAwait(false); return(response); }
/// <summary> /// Gets the Player Injuries. /// </summary> /// <param name="league">The league.</param> /// <param name="year">The year.</param> /// <param name="seasonType">Type of the season.</param> /// <param name="requestOptions">The request options.</param> /// <returns></returns> public async Task <PlayerInjuriesResponse> Get(int year, SeasonType seasonType, RequestOptions requestOptions = null) { string requestUrl = UrlBuilder.FormatRestApiUrl(Url, year, seasonType, requestOptions); return(await _httpWorker.GetAsync <PlayerInjuriesResponse>(requestUrl).ConfigureAwait(false)); }