public async Task <List <Comment> > GetAsync(Issue issue) { if (issue.Comments > 0) { return(await githubContext.RequestAsync <List <Comment> >(issue.Comments_Url)); } return(new List <Comment>()); }
public async Task <List <Issue> > GetAsync(string owner, string repo, Dictionary <string, string> queryString = null) { Uri uri = new Uri(string.Format("https://api.github.com/repos/{0}/{1}/issues{2}", owner, repo, queryString.ToQueryString())); return(await githubContext.RequestAsync <List <Issue> >(uri)); }